@gct-paas/core-web 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/index-BghCpvxN.js +76 -0
- package/dist/index-PLrMc0gl.cjs +76 -0
- package/dist/index-oVPMi6Ep.js +29160 -0
- package/dist/index.esm.min.mjs +34 -7924
- 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-B8X-ou0h.js +20245 -0
- package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
- package/dist/monaco-editor-NIWDtQNB.js +19 -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 +1 -1
- package/es/components/code-editor/code-editor.mjs +9 -10
- package/es/components/index.d.ts +10 -0
- package/es/components/index.mjs +21 -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/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 +79 -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 +7 -7
- package/es/index.mjs +35 -24
- 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/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 +190 -0
- package/es/utils/index.d.ts +4 -1
- 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.mjs +0 -1
- 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 +19 -8
- package/dist/index.min.css.css +0 -1
- 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/utils/index.mjs +0 -3
- 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 -112
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -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 };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { isVNode, defineComponent, createVNode, resolveComponent, provide, ref, reactive, h } from 'vue';
|
|
2
|
-
import { useNamespace } from '@gct-paas/core';
|
|
3
|
-
import './gct-form.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 GctForm = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "GctForm",
|
|
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");
|
|
23
|
-
provide("formController", props.c);
|
|
24
|
-
const formRef = ref(null);
|
|
25
|
-
const c = props.c;
|
|
26
|
-
const keys = Object.keys(c.item);
|
|
27
|
-
keys.forEach((key) => {
|
|
28
|
-
const item = c.item[key];
|
|
29
|
-
if (item) {
|
|
30
|
-
item.state = reactive(item.state);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const renderItem = (item) => {
|
|
34
|
-
return createVNode(resolveComponent("gct-form-item"), {
|
|
35
|
-
"class": item.class,
|
|
36
|
-
"style": item.style,
|
|
37
|
-
"c": c.item[item.name],
|
|
38
|
-
"formModel": props.model,
|
|
39
|
-
"model": item
|
|
40
|
-
}, null);
|
|
41
|
-
};
|
|
42
|
-
const renderContainer = (item) => {
|
|
43
|
-
const provider = c.provider[item.name];
|
|
44
|
-
if (!provider) {
|
|
45
|
-
console.error(`\u672A\u627E\u5230\u8868\u5355\u9879\u9002\u914D\u5668\u5B9E\u4F8B\uFF1A${item.name}`, item);
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
if (provider) {
|
|
49
|
-
return h(typeof provider.component === "string" ? resolveComponent(provider.component) : provider.component, {
|
|
50
|
-
key: item.name,
|
|
51
|
-
model: item,
|
|
52
|
-
formModel: props.model,
|
|
53
|
-
c: c.item[item.name],
|
|
54
|
-
data: c.state.data,
|
|
55
|
-
class: item.class,
|
|
56
|
-
style: item.style
|
|
57
|
-
}, renderChildren(item.children || []));
|
|
58
|
-
} else {
|
|
59
|
-
console.error(`\u672A\u627E\u5230\u8868\u5355\u5BB9\u5668\u9002\u914D\u5668\uFF1A${item.name} - ${item.type}`);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const renderChildren = (children) => {
|
|
63
|
-
if (!children) {
|
|
64
|
-
return [];
|
|
65
|
-
}
|
|
66
|
-
const nodes = [];
|
|
67
|
-
children.forEach((item) => {
|
|
68
|
-
if (item.type === "hidden") {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
let node = null;
|
|
72
|
-
const container = item;
|
|
73
|
-
if (container.type === "container" || container.container) {
|
|
74
|
-
node = renderContainer(container);
|
|
75
|
-
} else {
|
|
76
|
-
node = renderItem(item);
|
|
77
|
-
}
|
|
78
|
-
if (node) {
|
|
79
|
-
nodes.push(node);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
return nodes;
|
|
83
|
-
};
|
|
84
|
-
const staticStyle = {};
|
|
85
|
-
if (props.model.labelWidth) {
|
|
86
|
-
staticStyle[ns.cssVarName("form-item-label-width")] = props.model.labelWidth;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
ns,
|
|
90
|
-
formRef,
|
|
91
|
-
staticStyle,
|
|
92
|
-
renderItem,
|
|
93
|
-
renderContainer,
|
|
94
|
-
renderChildren
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
render() {
|
|
98
|
-
let _slot;
|
|
99
|
-
return createVNode(resolveComponent("a-form"), {
|
|
100
|
-
"ref": "formRef",
|
|
101
|
-
"layout": this.model.layout,
|
|
102
|
-
"model": this.c.state.data,
|
|
103
|
-
"class": [this.ns.b(), this.ns.is("info", this.model.info === true)],
|
|
104
|
-
"autocomplete": "off",
|
|
105
|
-
"style": this.staticStyle
|
|
106
|
-
}, _isSlot(_slot = this.model.children.map((item) => this.renderContainer(item))) ? _slot : {
|
|
107
|
-
default: () => [_slot]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
export { GctForm, GctForm as default };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { GctFormItem } from './gct-form-item/gct-form-item.mjs';
|
|
2
|
-
import { GctForm as GctForm$1 } from './gct-form.mjs';
|
|
3
|
-
import { GctFormItemProvider } from './gct-form-item/gct-form-item.provider.mjs';
|
|
4
|
-
import { GctFormHiddenItemProvider } from './gct-form-hidden-item/gct-form-hidden-item.provider.mjs';
|
|
5
|
-
import GctFormCollapsePane from './gct-form-collapse-pane/index.mjs';
|
|
6
|
-
import GctFormCollapse from './gct-form-collapse/index.mjs';
|
|
7
|
-
import GctFormGroup from './gct-form-group/index.mjs';
|
|
8
|
-
import GctFormTab from './gct-form-tab/index.mjs';
|
|
9
|
-
import GctFormTabPane from './gct-form-tab-pane/index.mjs';
|
|
10
|
-
import GctFormTitleGroup from './gct-form-title-group/index.mjs';
|
|
11
|
-
|
|
12
|
-
"use strict";
|
|
13
|
-
var GctForm = {
|
|
14
|
-
install(app) {
|
|
15
|
-
_gct.register.formItem.register("item", () => new GctFormItemProvider());
|
|
16
|
-
_gct.register.formItem.register(
|
|
17
|
-
"hidden",
|
|
18
|
-
() => new GctFormHiddenItemProvider()
|
|
19
|
-
);
|
|
20
|
-
app.use(GctFormCollapsePane);
|
|
21
|
-
app.use(GctFormCollapse);
|
|
22
|
-
app.use(GctFormGroup);
|
|
23
|
-
app.use(GctFormTab);
|
|
24
|
-
app.use(GctFormTabPane);
|
|
25
|
-
app.use(GctFormTitleGroup);
|
|
26
|
-
app.component(GctForm$1.name, GctForm$1);
|
|
27
|
-
app.component(GctFormItem.name, GctFormItem);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { GctForm as default };
|