@gct-paas/core-web 0.1.4-dev.0 → 0.1.4-dev.10
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-Bpd2MFJC.js +33732 -0
- package/dist/index-CwxW5OnC.js +98 -0
- package/dist/index-vFQ1naj3.cjs +98 -0
- package/dist/index.esm.min.mjs +41 -0
- package/dist/index.min.cjs +1 -20
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -20
- package/dist/monaco-editor-5rbNTIph.cjs +19 -0
- package/dist/monaco-editor-DHkSqfaq.js +19 -0
- package/dist/monaco-editor-DYUIGpkZ.js +20245 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/app-modal/app-modal-component.css +149 -0
- package/es/components/app-modal/app-modal-component.d.ts +26 -0
- package/es/components/app-modal/app-modal-component.mjs +140 -0
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/base-button/base-button.css +74 -0
- package/es/components/base-button/base-button.vue.d.ts +173 -0
- package/es/components/base-button/base-button.vue.mjs +7 -0
- package/es/components/base-button/base-button.vue3.mjs +179 -0
- package/es/components/basic-button/basic-button.css +25 -0
- package/es/components/basic-button/basic-button.vue.d.ts +100 -0
- package/es/components/basic-button/basic-button.vue.mjs +7 -0
- package/es/components/basic-button/basic-button.vue3.mjs +130 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +2 -5
- package/es/components/code-editor/code-editor.mjs +16 -22
- package/es/components/copy-module-key/copy-module-key.css +24 -0
- package/es/components/copy-module-key/copy-module-key.vue.d.ts +74 -0
- package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -0
- package/es/components/copy-module-key/copy-module-key.vue3.mjs +104 -0
- package/es/components/double-input/double-input.vue.d.ts +49 -0
- package/es/components/double-input/double-input.vue.mjs +158 -0
- package/es/components/double-input/double-input.vue2.mjs +5 -0
- package/es/components/index.d.ts +13 -0
- package/es/components/index.mjs +25 -6
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.mjs +13 -9
- package/es/components/layout/flex-item/flex-item.mjs +11 -9
- package/es/components/layout/grid-container/grid-container.mjs +11 -7
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.mjs +6 -7
- package/es/components/svg-icon/svg-icon.css +73 -0
- package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
- package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
- package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
- package/es/components/wujie-container/wujie-container.css +74 -0
- package/es/components/wujie-container/wujie-container.d.ts +11 -0
- package/es/components/wujie-container/wujie-container.mjs +84 -0
- package/es/create-app-vue.d.ts +9 -0
- package/es/create-app-vue.mjs +17 -0
- package/es/directives/drag-resize.d.ts +4 -0
- package/es/directives/drag-resize.mjs +42 -0
- package/es/directives/index.d.ts +8 -0
- package/es/directives/index.mjs +9 -0
- package/es/directives/target-loading.d.ts +4 -0
- package/es/directives/target-loading.mjs +40 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
- package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
- package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
- package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/useDragLine.d.ts +6 -0
- package/es/hooks/useDragLine.mjs +78 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +9 -7
- package/es/index.mjs +41 -23
- package/es/modules/code-editor/index.d.ts +163 -0
- package/es/modules/code-editor/index.mjs +8 -0
- package/es/modules/code-editor/monaco-editor.css +49 -0
- package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
- package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
- package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
- package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
- package/es/modules/code-editor/useEditorConsole.mjs +194 -0
- package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
- package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
- package/es/modules/color-picker/index.d.ts +2 -0
- package/es/modules/color-picker/src/ColorPicker.css +16 -0
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
- package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
- package/es/modules/color-picker/src/ColorPicker2.css +156 -0
- package/es/modules/formula-editor/constants/index.d.ts +7 -0
- package/es/modules/formula-editor/constants/index.mjs +8 -0
- package/es/modules/formula-editor/formula-editor.d.ts +10 -0
- package/es/modules/formula-editor/formula-editor.mjs +55 -0
- package/es/modules/formula-editor/index.d.ts +4 -0
- package/es/modules/formula-editor/interface/i-formula-editor-options/i-formula-editor-options.d.ts +47 -0
- package/es/modules/formula-editor/interface/i-formula-result/i-formula-result.d.ts +20 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +22 -0
- package/es/modules/gct-dnd/constants/index.mjs +20 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/modules/global-modal/index.d.ts +5 -0
- package/es/modules/global-modal/index.mjs +16 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
- package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
- package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
- package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
- package/es/modules/global-modal/src/components/ModalClose.css +95 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
- package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
- package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
- package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
- package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
- package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
- package/es/modules/global-modal/src/index.css +153 -0
- package/es/modules/global-modal/src/props.d.ts +156 -0
- package/es/modules/global-modal/src/props.mjs +57 -0
- package/es/modules/global-modal/src/typing.d.ts +174 -0
- package/es/modules/target-loading/index.d.ts +4 -0
- package/es/modules/target-loading/src/createLoading.d.ts +13 -0
- package/es/modules/target-loading/src/createLoading.mjs +57 -0
- package/es/modules/target-loading/src/target-loading.css +18 -0
- package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
- package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
- package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
- package/es/modules/target-loading/src/typing.d.ts +9 -0
- package/es/modules/target-loading/src/useLoading.d.ts +9 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +4 -0
- package/es/types/index.d.ts +191 -1
- package/es/utils/index.d.ts +4 -0
- package/es/utils/message-util/message-util.d.ts +7 -0
- package/es/utils/message-util/message-util.mjs +26 -0
- package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
- package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
- package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
- package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
- package/es/utils/with-install.d.ts +14 -0
- package/es/utils/with-install.mjs +13 -0
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
- package/package.json +26 -14
- package/dist/core-web.css +0 -1
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/node.mjs +0 -7
- package/es/_virtual/node2.mjs +0 -3
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +0 -3
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -142
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -7
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -1
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -188
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -13
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -19
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -14
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -5
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -20
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -49
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +0 -200
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +0 -26
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +0 -44
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +0 -72
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +0 -60
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +0 -32
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +0 -28
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +0 -71
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +0 -22
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +0 -34
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +0 -23
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +0 -29
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +0 -33
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +0 -87
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +0 -92
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +0 -171
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +0 -51
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +0 -149
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +0 -63
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +0 -56
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +0 -27
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +0 -144
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +0 -12
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +0 -73
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +0 -17
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +0 -67
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +0 -11
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +0 -11
- package/es/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.3_/node_modules/@vueuse/core/index.mjs +0 -7487
- package/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.3_/node_modules/@vueuse/shared/index.mjs +0 -1576
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +0 -528
- package/es/node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.mjs +0 -193
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +0 -1180
- package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.3_/node_modules/vue-demi/lib/index.mjs +0 -29
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@5.8.3_/node_modules/vue-types/dist/vue-types.m.mjs +0 -3
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_9cfe46f6a11310063dbf07d888abdb76/node_modules/vue3-colorpicker/index.es.mjs +0 -1815
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -110
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { isVNode, defineComponent, h, resolveComponent, createVNode, computed } from 'vue';
|
|
2
|
-
import { EditorRegisterConst, useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-item.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
function _isSlot(s) {
|
|
7
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
-
}
|
|
9
|
-
const GctFormItem = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "GctFormItem",
|
|
11
|
-
props: {
|
|
12
|
-
c: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
formModel: {
|
|
17
|
-
type: Object,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
model: {
|
|
21
|
-
type: Object,
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(props) {
|
|
26
|
-
const ns = useNamespace("gct-form-item");
|
|
27
|
-
const style = {};
|
|
28
|
-
if (props.formModel.labelWidth) {
|
|
29
|
-
style[ns.cssVarName("form-item-label-width")] = props.formModel.labelWidth;
|
|
30
|
-
}
|
|
31
|
-
if (props.model.labelWidth) {
|
|
32
|
-
style[ns.cssVarName("form-item-label-width")] = props.model.labelWidth;
|
|
33
|
-
}
|
|
34
|
-
if (props.model.labelAlign) {
|
|
35
|
-
style[ns.cssVarName("form-item-label-align")] = props.model.labelAlign;
|
|
36
|
-
}
|
|
37
|
-
if (props.model.editorAlign) {
|
|
38
|
-
style[ns.cssVarName("form-item-editor-align")] = props.model.editorAlign;
|
|
39
|
-
}
|
|
40
|
-
if (props.model.width) {
|
|
41
|
-
style[ns.cssVarName("form-item-width")] = props.model.width;
|
|
42
|
-
}
|
|
43
|
-
if (props.model.margin) {
|
|
44
|
-
style.margin = props.model.margin;
|
|
45
|
-
}
|
|
46
|
-
if (props.model.padding) {
|
|
47
|
-
style.padding = props.model.padding;
|
|
48
|
-
}
|
|
49
|
-
const required = computed(() => {
|
|
50
|
-
return !!props.model.rules?.find((item) => item.required);
|
|
51
|
-
});
|
|
52
|
-
const renderLabelTooltip = () => {
|
|
53
|
-
if (!props.model.labelTooltip) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
return createVNode(resolveComponent("a-tooltip"), {
|
|
57
|
-
"class": ns.e("label-tooltip"),
|
|
58
|
-
"placement": "topLeft",
|
|
59
|
-
"title": props.model.labelTooltip
|
|
60
|
-
}, {
|
|
61
|
-
default: () => [createVNode("span", {
|
|
62
|
-
"class": "iconfont icon-assist ml5px text-[#bfbfbf]"
|
|
63
|
-
}, null)]
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
return {
|
|
67
|
-
ns,
|
|
68
|
-
style,
|
|
69
|
-
required,
|
|
70
|
-
renderLabelTooltip
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
render() {
|
|
74
|
-
const provider = _gct.register.editor.get(EditorRegisterConst.PREFIX + this.model.editor.type);
|
|
75
|
-
if (!provider) {
|
|
76
|
-
console.error(`\u672A\u627E\u5230\u8868\u5355\u9879${this.model.name}\u7684\u7F16\u8F91\u5668${this.model.editor.type}\u7684\u9002\u914D\u5668\u5B9E\u4F8B\uFF1A`, this.model);
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
const labelPosition = this.model.labelPosition || "left";
|
|
80
|
-
let content = null;
|
|
81
|
-
if (provider) {
|
|
82
|
-
if (provider.render) {
|
|
83
|
-
content = provider.render(this.c.editorValue, this.c.data, this.model);
|
|
84
|
-
} else {
|
|
85
|
-
if (provider.component) {
|
|
86
|
-
content = h(typeof provider.component === "string" ? resolveComponent(provider.component) : provider.component, {
|
|
87
|
-
key: this.model.name,
|
|
88
|
-
c: this.c,
|
|
89
|
-
value: this.c.editorValue,
|
|
90
|
-
itemModel: this.model,
|
|
91
|
-
model: this.model.editor,
|
|
92
|
-
data: this.c.data,
|
|
93
|
-
disabled: this.c.state.disabled,
|
|
94
|
-
readonly: this.c.state.readonly,
|
|
95
|
-
keepalive: this.c.state.keepalive,
|
|
96
|
-
visible: this.c.state.visible,
|
|
97
|
-
class: [this.ns.e("editor"), this.ns.e(labelPosition), this.model.editor.class],
|
|
98
|
-
style: this.model.editor.style,
|
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
-
"onUpdate:value": (value) => {
|
|
101
|
-
this.c.editorValue = value;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
} else {
|
|
105
|
-
console.error(`\u672A\u627E\u5230\u7F16\u8F91\u5668\u7ED8\u5236\u7EC4\u4EF6\uFF1A${this.model.name} - ${this.model.editor.type}\uFF0C\u8BF7\u5B9E\u73B0 component \u6216 render \u65B9\u6CD5`);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
console.error(`\u672A\u627E\u5230\u7F16\u8F91\u5668\u9002\u914D\u5668\uFF1A${this.model.name} - ${this.model.editor.type}`);
|
|
110
|
-
}
|
|
111
|
-
if (this.model.label && labelPosition === "top") {
|
|
112
|
-
content = [createVNode("div", {
|
|
113
|
-
"class": [this.ns.e("label"), this.ns.em("label", labelPosition)]
|
|
114
|
-
}, [this.model.label, this.renderLabelTooltip()]), content];
|
|
115
|
-
}
|
|
116
|
-
const itemSlots = {
|
|
117
|
-
default: () => {
|
|
118
|
-
return content;
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
if (labelPosition === "left" && this.model.label) {
|
|
122
|
-
itemSlots.label = () => {
|
|
123
|
-
return [createVNode("span", null, [this.model.label]), this.renderLabelTooltip()];
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
return createVNode(resolveComponent("a-form-item"), {
|
|
127
|
-
"key": this.c.model.name,
|
|
128
|
-
"colon": this.formModel.noColon === true ? false : this.model.noColon === true ? false : true,
|
|
129
|
-
"name": this.model.name,
|
|
130
|
-
"label": void 0,
|
|
131
|
-
"class": [this.ns.b(), this.ns.is("readonly", this.model.editor.readonly === true), this.ns.is("required", this.required), this.ns.is("hidden", this.c.state.visible === false), this.ns.is("hidden-label", !this.model.label), this.ns.m("label-" + labelPosition)],
|
|
132
|
-
"style": this.style,
|
|
133
|
-
"rules": this.c.state.visible === true ? this.model.rules : [],
|
|
134
|
-
"layout": "horizontal"
|
|
135
|
-
}, _isSlot(itemSlots) ? itemSlots : {
|
|
136
|
-
default: () => [itemSlots]
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
export { GctFormItem, GctFormItem as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useFormItemController, FormItemController } from '@gct-paas/core';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class GctFormItemProvider {
|
|
5
|
-
component = "gct-form-item";
|
|
6
|
-
createController(form, item) {
|
|
7
|
-
return useFormItemController(() => new FormItemController(form, item));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { GctFormItemProvider };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
$gct-form-item: (
|
|
2
|
-
min-height: 32px,
|
|
3
|
-
height: auto,
|
|
4
|
-
width: auto,
|
|
5
|
-
label-width: 100px,
|
|
6
|
-
readonly-color: #999,
|
|
7
|
-
label-align: right,
|
|
8
|
-
editor-align: left,
|
|
9
|
-
label-color: #252525,
|
|
10
|
-
label-font-size: 14px,
|
|
11
|
-
checkbox-width: 6px,
|
|
12
|
-
checkbox-height: 9px,
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
@include b(gct-form-item) {
|
|
16
|
-
@include set-component-css-var('form-item', $gct-form-item);
|
|
17
|
-
|
|
18
|
-
width: getCssVar(form-item, width);
|
|
19
|
-
height: getCssVar(form-item, height);
|
|
20
|
-
min-height: getCssVar(form-item, min-height);
|
|
21
|
-
|
|
22
|
-
@include when(hidden-label) {
|
|
23
|
-
.gct-gct-form-item__editor {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@include when(hidden) {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include when(readonly) {
|
|
33
|
-
margin-bottom: 18px !important;
|
|
34
|
-
#{getCssVarName(form-item, min-height)}: 22px;
|
|
35
|
-
|
|
36
|
-
.ant-form-item-label {
|
|
37
|
-
padding: 0;
|
|
38
|
-
|
|
39
|
-
label {
|
|
40
|
-
color: getCssVar(form-item, readonly-color);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include e(label) {
|
|
45
|
-
color: getCssVar(form-item, readonly-color);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@include when(required) {
|
|
50
|
-
@include e(label) {
|
|
51
|
-
&::before {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
margin-inline-end: 4px;
|
|
54
|
-
color: #ff4d4f;
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
font-family: SimSun, sans-serif;
|
|
57
|
-
line-height: 1;
|
|
58
|
-
content: '*';
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ant-form-item-label {
|
|
64
|
-
width: getCssVar(form-item, label-width);
|
|
65
|
-
text-align: getCssVar(form-item, label-align);
|
|
66
|
-
|
|
67
|
-
label {
|
|
68
|
-
color: getCssVar(form-item, label-color);
|
|
69
|
-
font-size: getCssVar(form-item, label-font-size);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.ant-form-item-control-input-content {
|
|
74
|
-
text-align: getCssVar(form-item, editor-align);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@include e(label) {
|
|
78
|
-
width: getCssVar(form-item, label-width);
|
|
79
|
-
line-height: 1.5715;
|
|
80
|
-
font-size: getCssVar(form-item, label-font-size);
|
|
81
|
-
|
|
82
|
-
@include m(top) {
|
|
83
|
-
width: 100%;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@include m(label-top) {
|
|
88
|
-
@include e(label) {
|
|
89
|
-
margin-bottom: 8px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// 组件样式压
|
|
94
|
-
.ant-form-item-control-input {
|
|
95
|
-
flex-grow: 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ant-checkbox-group {
|
|
99
|
-
font-size: getCssVar(form-item, label-font-size);
|
|
100
|
-
|
|
101
|
-
.ant-checkbox-wrapper {
|
|
102
|
-
font-size: getCssVar(form-item, label-font-size);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ant-form input[type="checkbox"], .ant-checkbox-inner {
|
|
106
|
-
width: getCssVar(form-item, label-font-size);
|
|
107
|
-
height: getCssVar(form-item, label-font-size);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.ant-checkbox-inner::after {
|
|
111
|
-
width: getCssVar(form-item, checkbox-width);
|
|
112
|
-
height: getCssVar(form-item, checkbox-height);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-tab.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const GctFormTab = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "GctFormTab",
|
|
8
|
-
props: {
|
|
9
|
-
c: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
model: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(props) {
|
|
19
|
-
const ns = useNamespace("form-tab");
|
|
20
|
-
const style = {};
|
|
21
|
-
if (props.model.width) {
|
|
22
|
-
style[ns.cssVarName("form-tab-width")] = props.model.width;
|
|
23
|
-
}
|
|
24
|
-
if (props.model.height) {
|
|
25
|
-
style[ns.cssVarName("form-tab-height")] = props.model.height;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
ns,
|
|
29
|
-
style
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
render() {
|
|
33
|
-
if (this.c.state.keepalive !== true && this.c.state.visible === false) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
const items = this.$slots.default?.() || [];
|
|
37
|
-
return createVNode(resolveComponent("a-tabs"), {
|
|
38
|
-
"class": [this.ns.b(), this.ns.is("hidden", this.c.state.visible === false), this.ns.m(this.model.navPosition || "left")],
|
|
39
|
-
"style": this.style
|
|
40
|
-
}, {
|
|
41
|
-
default: () => [this.model.children?.map((item, index) => {
|
|
42
|
-
return createVNode(resolveComponent("a-tab-pane"), {
|
|
43
|
-
"key": item.name,
|
|
44
|
-
"tab": item.title
|
|
45
|
-
}, {
|
|
46
|
-
default: () => [items[index]]
|
|
47
|
-
});
|
|
48
|
-
})]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export { GctFormTab, GctFormTab as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useFormItemController, FormTabController } from '@gct-paas/core';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class GctFormTabProvider {
|
|
5
|
-
component = "gct-form-tab";
|
|
6
|
-
createController(form, item) {
|
|
7
|
-
return useFormItemController(() => new FormTabController(form, item));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { GctFormTabProvider };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
$gct-form-tab: (
|
|
2
|
-
tab-spacing: 52px,
|
|
3
|
-
width: auto,
|
|
4
|
-
height: auto,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
@include b(form-tab) {
|
|
8
|
-
@include set-component-css-var('form-tab', $gct-form-tab);
|
|
9
|
-
|
|
10
|
-
width: getCssVar(form-tab, width);
|
|
11
|
-
height: getCssVar(form-tab, height);
|
|
12
|
-
|
|
13
|
-
@include when(hidden) {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// 原组件样式调整
|
|
18
|
-
>.ant-tabs-nav{
|
|
19
|
-
margin-bottom: 0 !important;
|
|
20
|
-
background-color: #fff;
|
|
21
|
-
|
|
22
|
-
>.ant-tabs-nav-wrap{
|
|
23
|
-
border-bottom: 1px solid #E0E3EA;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ant-tabs-tab+.ant-tabs-tab{
|
|
27
|
-
margin-left: getCssVar(form-tab, tab-spacing);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* stylelint-disable-next-line no-descending-specificity */
|
|
31
|
-
.ant-tabs-tab {
|
|
32
|
-
padding: 7px 0;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.ant-tabs {
|
|
37
|
-
.ant-tabs-tabpane {
|
|
38
|
-
overflow: hidden auto;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
>.ant-tabs-content-holder >.ant-tabs-content{
|
|
43
|
-
height: 100%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@include m(left){
|
|
47
|
-
>.ant-tabs-nav .ant-tabs-nav-wrap{
|
|
48
|
-
justify-content: flex-start;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@include m(right){
|
|
53
|
-
>.ant-tabs-nav .ant-tabs-nav-wrap{
|
|
54
|
-
justify-content: flex-end;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@include m(center){
|
|
59
|
-
>.ant-tabs-nav .ant-tabs-nav-wrap{
|
|
60
|
-
justify-content: center;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GctFormTabProvider } from './gct-form-tab.provider.mjs';
|
|
2
|
-
import { GctFormTab as GctFormTab$1 } from './gct-form-tab.mjs';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
var GctFormTab = {
|
|
6
|
-
install(app) {
|
|
7
|
-
_gct.register.formItem.register("tab", () => new GctFormTabProvider());
|
|
8
|
-
app.component(GctFormTab$1.name, GctFormTab$1);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { GctFormTab as default };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { isVNode, defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-tab-pane.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
function _isSlot(s) {
|
|
7
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
-
}
|
|
9
|
-
const GctFormTabPane = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "GctFormTabPane",
|
|
11
|
-
props: {
|
|
12
|
-
c: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
model: {
|
|
17
|
-
type: Object,
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(props) {
|
|
22
|
-
const ns = useNamespace("form-tab-pane");
|
|
23
|
-
const style = {};
|
|
24
|
-
function renderContainer(items) {
|
|
25
|
-
if (props.model.layout === "flex") {
|
|
26
|
-
return createVNode(resolveComponent("flex-container"), {
|
|
27
|
-
"layout": props.model.flex
|
|
28
|
-
}, _isSlot(items) ? items : {
|
|
29
|
-
default: () => [items]
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
if (props.model.layout === "grid") {
|
|
33
|
-
return createVNode(resolveComponent("grid-container"), {
|
|
34
|
-
"layout": props.model.grid
|
|
35
|
-
}, _isSlot(items) ? items : {
|
|
36
|
-
default: () => [items]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
console.error("\u4E0D\u652F\u6301\u7684layout\u7C7B\u578B" + props.model.layout);
|
|
40
|
-
}
|
|
41
|
-
if (props.model.width) {
|
|
42
|
-
style[ns.cssVarName("form-tab-pane-width")] = props.model.width;
|
|
43
|
-
}
|
|
44
|
-
if (props.model.height) {
|
|
45
|
-
style[ns.cssVarName("form-tab-pane-height")] = props.model.height;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
ns,
|
|
49
|
-
style,
|
|
50
|
-
renderContainer
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
render() {
|
|
54
|
-
if (this.c.state.keepalive !== true && this.c.state.visible === false) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
const items = this.$slots.default?.() || [];
|
|
58
|
-
return createVNode("div", {
|
|
59
|
-
"class": [this.ns.b(), this.ns.is("hidden", this.c.state.visible === false)],
|
|
60
|
-
"style": this.style
|
|
61
|
-
}, [this.renderContainer(items)]);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
export { GctFormTabPane, GctFormTabPane as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useFormItemController, FormTabPaneController } from '@gct-paas/core';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class GctFormTabPaneProvider {
|
|
5
|
-
component = "gct-form-tab-pane";
|
|
6
|
-
createController(form, item) {
|
|
7
|
-
return useFormItemController(() => new FormTabPaneController(form, item));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { GctFormTabPaneProvider };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
$gct-form-tab-pane: (
|
|
2
|
-
width: auto,
|
|
3
|
-
height: auto,
|
|
4
|
-
);
|
|
5
|
-
|
|
6
|
-
@include b(form-tab-pane) {
|
|
7
|
-
@include set-component-css-var('form-tab-pane', $gct-form-tab-pane);
|
|
8
|
-
|
|
9
|
-
width: getCssVar(form-tab-pane, width);
|
|
10
|
-
height: 100%;
|
|
11
|
-
background-color: #fff;
|
|
12
|
-
|
|
13
|
-
@include when(hidden) {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GctFormTabPaneProvider } from './gct-form-tab-pane.provider.mjs';
|
|
2
|
-
import { GctFormTabPane as GctFormTabPane$1 } from './gct-form-tab-pane.mjs';
|
|
3
|
-
|
|
4
|
-
"use strict";
|
|
5
|
-
var GctFormTabPane = {
|
|
6
|
-
install(app) {
|
|
7
|
-
_gct.register.formItem.register(
|
|
8
|
-
"tab-pane",
|
|
9
|
-
() => new GctFormTabPaneProvider()
|
|
10
|
-
);
|
|
11
|
-
app.component(GctFormTabPane$1.name, GctFormTabPane$1);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { GctFormTabPane as default };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { isVNode, defineComponent, createVNode, ref, resolveComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './gct-form-title-group.scss';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
function _isSlot(s) {
|
|
7
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
-
}
|
|
9
|
-
const GctFormTitleGroup = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "GctFormTitleGroup",
|
|
11
|
-
props: {
|
|
12
|
-
c: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
model: {
|
|
17
|
-
type: Object,
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(props) {
|
|
22
|
-
const ns = useNamespace("gct-form-title-group");
|
|
23
|
-
const keys = ref([0]);
|
|
24
|
-
function renderContainer(items) {
|
|
25
|
-
if (props.model.layout === "flex") {
|
|
26
|
-
return createVNode(resolveComponent("flex-container"), {
|
|
27
|
-
"layout": props.model.flex
|
|
28
|
-
}, _isSlot(items) ? items : {
|
|
29
|
-
default: () => [items]
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
if (props.model.layout === "grid") {
|
|
33
|
-
return createVNode(resolveComponent("grid-container"), {
|
|
34
|
-
"layout": props.model.grid
|
|
35
|
-
}, _isSlot(items) ? items : {
|
|
36
|
-
default: () => [items]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
console.error("\u4E0D\u652F\u6301\u7684layout\u7C7B\u578B" + props.model.layout);
|
|
40
|
-
}
|
|
41
|
-
const style = {};
|
|
42
|
-
if (props.model.width) {
|
|
43
|
-
style[ns.cssVarName("form-title-group-width")] = props.model.width;
|
|
44
|
-
}
|
|
45
|
-
if (props.model.height) {
|
|
46
|
-
style[ns.cssVarName("form-title-group-height")] = props.model.height;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
ns,
|
|
50
|
-
keys,
|
|
51
|
-
style,
|
|
52
|
-
renderContainer
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
render() {
|
|
56
|
-
if (this.c.state.keepalive !== true && this.c.state.visible === false) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
const items = this.$slots.default?.() || [];
|
|
60
|
-
return createVNode("div", {
|
|
61
|
-
"class": [this.ns.b(), this.ns.is("hidden", this.c.state.visible === false)],
|
|
62
|
-
"style": this.style
|
|
63
|
-
}, [createVNode("div", {
|
|
64
|
-
"class": this.ns.e("title")
|
|
65
|
-
}, [this.model.title]), createVNode("div", {
|
|
66
|
-
"class": this.ns.e("content")
|
|
67
|
-
}, [this.renderContainer(items)])]);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export { GctFormTitleGroup, GctFormTitleGroup as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useFormItemController, FormGroupController } from '@gct-paas/core';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class GctFormTitleGroupProvider {
|
|
5
|
-
component = "gct-form-title-group";
|
|
6
|
-
createController(form, item) {
|
|
7
|
-
return useFormItemController(() => new FormGroupController(form, item));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { GctFormTitleGroupProvider };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
$gct-form-title-group: (
|
|
2
|
-
min-height: 32px,
|
|
3
|
-
width: auto,
|
|
4
|
-
height: auto,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
@include b(gct-form-title-group) {
|
|
8
|
-
@include set-component-css-var('form-title-group', $gct-form-title-group);
|
|
9
|
-
|
|
10
|
-
@include when(hidden) {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@include e(title) {
|
|
15
|
-
color: #252525;
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
padding: 8px 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@include e(content) {
|
|
21
|
-
.ant-form-item-label {
|
|
22
|
-
--gct-form-item-label-color: #797A7D;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FormContainerType } from '@gct-paas/core';
|
|
2
|
-
import { GctFormTitleGroupProvider } from './gct-form-title-group.provider.mjs';
|
|
3
|
-
import { GctFormTitleGroup as GctFormTitleGroup$1 } from './gct-form-title-group.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
var GctFormTitleGroup = {
|
|
7
|
-
install(app) {
|
|
8
|
-
_gct.register.formItem.register(
|
|
9
|
-
FormContainerType.FORM_TITLE_GROUP,
|
|
10
|
-
() => new GctFormTitleGroupProvider()
|
|
11
|
-
);
|
|
12
|
-
app.component(GctFormTitleGroup$1.name, GctFormTitleGroup$1);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { GctFormTitleGroup as default };
|