@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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, createBlock, unref, withCtx, createVNode, createCommentVNode } from 'vue';
|
|
2
|
+
import { FullscreenExitOutlined, FullscreenOutlined, CloseOutlined } from '@ant-design/icons-vue';
|
|
3
|
+
import { Tooltip } from 'ant-design-vue';
|
|
4
|
+
import { useNamespace, t } from '@gct-paas/core';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ModalClose",
|
|
8
|
+
props: {
|
|
9
|
+
canFullscreen: { type: Boolean, default: true },
|
|
10
|
+
fullScreen: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
emits: ["cancel", "fullscreen"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const ns = useNamespace("basic-modal-close");
|
|
17
|
+
const getClass = computed(() => {
|
|
18
|
+
return [
|
|
19
|
+
ns.b(),
|
|
20
|
+
`${ns.b()}--custom`,
|
|
21
|
+
{
|
|
22
|
+
[`${ns.b()}--can-full`]: props.canFullscreen
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
});
|
|
26
|
+
function handleCancel(e) {
|
|
27
|
+
emit("cancel", e);
|
|
28
|
+
}
|
|
29
|
+
function handleFullScreen(e) {
|
|
30
|
+
e?.stopPropagation();
|
|
31
|
+
e?.preventDefault();
|
|
32
|
+
emit("fullscreen");
|
|
33
|
+
}
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return openBlock(), createElementBlock("div", {
|
|
36
|
+
class: normalizeClass(getClass.value)
|
|
37
|
+
}, [
|
|
38
|
+
__props.canFullscreen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
39
|
+
__props.fullScreen ? (openBlock(), createBlock(unref(Tooltip), {
|
|
40
|
+
key: 0,
|
|
41
|
+
title: unref(t)("sys.component.modal.restore"),
|
|
42
|
+
placement: "bottom"
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
createVNode(unref(FullscreenExitOutlined), {
|
|
46
|
+
role: "full",
|
|
47
|
+
onClick: handleFullScreen
|
|
48
|
+
})
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["title"])) : (openBlock(), createBlock(unref(Tooltip), {
|
|
52
|
+
key: 1,
|
|
53
|
+
title: unref(t)("sys.component.modal.maximize"),
|
|
54
|
+
placement: "bottom"
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createVNode(unref(FullscreenOutlined), {
|
|
58
|
+
role: "close",
|
|
59
|
+
onClick: handleFullScreen
|
|
60
|
+
})
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["title"]))
|
|
64
|
+
], 64)) : createCommentVNode("", true),
|
|
65
|
+
createVNode(unref(Tooltip), {
|
|
66
|
+
title: unref(t)("sys.component.modal.close"),
|
|
67
|
+
placement: "bottom"
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createVNode(unref(CloseOutlined), { onClick: handleCancel })
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["title"])
|
|
74
|
+
], 2);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
insertFooter?(_: {}): any;
|
|
5
|
+
centerFooter?(_: {}): any;
|
|
6
|
+
appendFooter?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
visible: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
};
|
|
16
|
+
scrollTop: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
height: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
};
|
|
23
|
+
outHeight: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
minHeight: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
draggable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
centered: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
cancelText: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
okText: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
45
|
+
} & {
|
|
46
|
+
defaultFullscreen: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
};
|
|
49
|
+
canFullscreen: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
wrapperFooterOffset: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
helpMessage: import('vue').PropType<string | string[]>;
|
|
58
|
+
useWrapper: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
loading: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
};
|
|
65
|
+
loadingTip: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
showCancelBtn: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
showOkBtn: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
wrapperProps: import('vue').PropType<Partial<import('../typing').ModalWrapperProps>>;
|
|
77
|
+
afterClose: FunctionConstructor;
|
|
78
|
+
bodyStyle: import('vue').PropType<import('vue').CSSProperties>;
|
|
79
|
+
closable: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
closeIcon: import('vue').PropType<import('vue').VNode>;
|
|
84
|
+
confirmLoading: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
87
|
+
destroyOnClose: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
};
|
|
90
|
+
footer: import('vue').PropType<import('vue').VNode>;
|
|
91
|
+
getContainer: import('vue').PropType<() => IObject>;
|
|
92
|
+
mask: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
maskClosable: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
keyboard: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
maskStyle: import('vue').PropType<import('vue').CSSProperties>;
|
|
105
|
+
okType: {
|
|
106
|
+
type: import('vue').PropType<import('ant-design-vue/es/button').ButtonType>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
|
|
110
|
+
cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
|
|
111
|
+
title: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
};
|
|
114
|
+
visible: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
};
|
|
117
|
+
width: import('vue').PropType<string | number>;
|
|
118
|
+
wrapClassName: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
};
|
|
121
|
+
zIndex: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
};
|
|
124
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
125
|
+
ok: (...args: any[]) => void;
|
|
126
|
+
cancel: (...args: any[]) => void;
|
|
127
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
128
|
+
visible: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
};
|
|
131
|
+
scrollTop: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
height: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
};
|
|
138
|
+
outHeight: {
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
};
|
|
141
|
+
minHeight: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
};
|
|
144
|
+
draggable: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
centered: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
};
|
|
151
|
+
cancelText: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
okText: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
closeFunc: import('vue').PropType<() => Promise<boolean>>;
|
|
160
|
+
} & {
|
|
161
|
+
defaultFullscreen: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
164
|
+
canFullscreen: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
wrapperFooterOffset: {
|
|
169
|
+
type: NumberConstructor;
|
|
170
|
+
default: number;
|
|
171
|
+
};
|
|
172
|
+
helpMessage: import('vue').PropType<string | string[]>;
|
|
173
|
+
useWrapper: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
loading: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
};
|
|
180
|
+
loadingTip: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
};
|
|
183
|
+
showCancelBtn: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
|
+
showOkBtn: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
wrapperProps: import('vue').PropType<Partial<import('../typing').ModalWrapperProps>>;
|
|
192
|
+
afterClose: FunctionConstructor;
|
|
193
|
+
bodyStyle: import('vue').PropType<import('vue').CSSProperties>;
|
|
194
|
+
closable: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
closeIcon: import('vue').PropType<import('vue').VNode>;
|
|
199
|
+
confirmLoading: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
};
|
|
202
|
+
destroyOnClose: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
};
|
|
205
|
+
footer: import('vue').PropType<import('vue').VNode>;
|
|
206
|
+
getContainer: import('vue').PropType<() => IObject>;
|
|
207
|
+
mask: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
maskClosable: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
keyboard: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
maskStyle: import('vue').PropType<import('vue').CSSProperties>;
|
|
220
|
+
okType: {
|
|
221
|
+
type: import('vue').PropType<import('ant-design-vue/es/button').ButtonType>;
|
|
222
|
+
default: string;
|
|
223
|
+
};
|
|
224
|
+
okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
|
|
225
|
+
cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
|
|
226
|
+
title: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
};
|
|
229
|
+
visible: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
};
|
|
232
|
+
width: import('vue').PropType<string | number>;
|
|
233
|
+
wrapClassName: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
};
|
|
236
|
+
zIndex: {
|
|
237
|
+
type: NumberConstructor;
|
|
238
|
+
};
|
|
239
|
+
}>> & Readonly<{
|
|
240
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
241
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
}>, {
|
|
243
|
+
visible: boolean;
|
|
244
|
+
scrollTop: boolean;
|
|
245
|
+
draggable: boolean;
|
|
246
|
+
centered: boolean;
|
|
247
|
+
cancelText: string;
|
|
248
|
+
okText: string;
|
|
249
|
+
defaultFullscreen: boolean;
|
|
250
|
+
canFullscreen: boolean;
|
|
251
|
+
wrapperFooterOffset: number;
|
|
252
|
+
useWrapper: boolean;
|
|
253
|
+
loading: boolean;
|
|
254
|
+
showCancelBtn: boolean;
|
|
255
|
+
showOkBtn: boolean;
|
|
256
|
+
closable: boolean;
|
|
257
|
+
confirmLoading: boolean;
|
|
258
|
+
destroyOnClose: boolean;
|
|
259
|
+
mask: boolean;
|
|
260
|
+
maskClosable: boolean;
|
|
261
|
+
keyboard: boolean;
|
|
262
|
+
okType: import('ant-design-vue/es/button').ButtonType;
|
|
263
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
264
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
265
|
+
export default _default;
|
|
266
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
267
|
+
new (): {
|
|
268
|
+
$slots: S;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, renderSlot, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
import { Button } from 'ant-design-vue';
|
|
3
|
+
import { basicProps } from '../props.mjs';
|
|
4
|
+
import { t } from '@gct-paas/core';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "ModalFooter",
|
|
8
|
+
props: basicProps,
|
|
9
|
+
emits: ["ok", "cancel"],
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const emit = __emit;
|
|
12
|
+
function handleOk(e) {
|
|
13
|
+
emit("ok", e);
|
|
14
|
+
}
|
|
15
|
+
function handleCancel(e) {
|
|
16
|
+
emit("cancel", e);
|
|
17
|
+
}
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", null, [
|
|
20
|
+
renderSlot(_ctx.$slots, "insertFooter"),
|
|
21
|
+
_ctx.showCancelBtn ? (openBlock(), createBlock(unref(Button), mergeProps({ key: 0 }, _ctx.cancelButtonProps, { onClick: handleCancel }), {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
createTextVNode(toDisplayString(unref(t)(_ctx.cancelText)), 1)
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 16)) : createCommentVNode("", true),
|
|
27
|
+
renderSlot(_ctx.$slots, "centerFooter"),
|
|
28
|
+
_ctx.showOkBtn ? (openBlock(), createBlock(unref(Button), mergeProps({
|
|
29
|
+
key: 1,
|
|
30
|
+
type: _ctx.okType,
|
|
31
|
+
loading: _ctx.confirmLoading
|
|
32
|
+
}, _ctx.okButtonProps, { onClick: handleOk }), {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createTextVNode(toDisplayString(unref(t)(_ctx.okText)), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 16, ["type", "loading"])) : createCommentVNode("", true),
|
|
38
|
+
renderSlot(_ctx.$slots, "appendFooter")
|
|
39
|
+
]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
helpMessage: {
|
|
4
|
+
type: PropType<string | string[]>;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
helpMessage: {
|
|
11
|
+
type: PropType<string | string[]>;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _sfc_main from './ModalHeader.vue2.mjs';
|
|
2
|
+
import { openBlock, createElementBlock, toDisplayString } from 'vue';
|
|
3
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = ["help-message"];
|
|
6
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
|
+
return openBlock(), createElementBlock("div", { "help-message": _ctx.helpMessage }, toDisplayString(_ctx.title), 9, _hoisted_1);
|
|
8
|
+
}
|
|
9
|
+
const ModalHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
10
|
+
|
|
11
|
+
export { ModalHeader as default };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { OverlayScrollbarsComponentRef } from 'overlayscrollbars-vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
loading: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
};
|
|
7
|
+
useWrapper: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
modalHeaderHeight: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
modalFooterHeight: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
minHeight: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
height: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
footerOffset: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
visible: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
};
|
|
33
|
+
fullScreen: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
loadingTip: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
}>, {
|
|
40
|
+
wrapperRef: import('vue').Ref<OverlayScrollbarsComponentRef | undefined, OverlayScrollbarsComponentRef | undefined>;
|
|
41
|
+
spinRef: import('vue').Ref<null, null>;
|
|
42
|
+
spinStyle: import('vue').Ref<any, any>;
|
|
43
|
+
scrollTop: () => Promise<void>;
|
|
44
|
+
setModalHeight: () => Promise<void>;
|
|
45
|
+
scrollHeight: import('vue').ComputedRef<CSSProperties>;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("height-change" | "ext-height")[], "height-change" | "ext-height", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
loading: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
};
|
|
50
|
+
useWrapper: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
modalHeaderHeight: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
modalFooterHeight: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
minHeight: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
height: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
};
|
|
69
|
+
footerOffset: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
visible: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
};
|
|
76
|
+
fullScreen: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
};
|
|
79
|
+
loadingTip: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
"onHeight-change"?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
"onExt-height"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
}>, {
|
|
86
|
+
visible: boolean;
|
|
87
|
+
minHeight: number;
|
|
88
|
+
useWrapper: boolean;
|
|
89
|
+
loading: boolean;
|
|
90
|
+
footerOffset: number;
|
|
91
|
+
modalHeaderHeight: number;
|
|
92
|
+
modalFooterHeight: number;
|
|
93
|
+
fullScreen: boolean;
|
|
94
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import _sfc_main from './ModalWrapper.vue2.mjs';
|
|
2
|
+
import { resolveComponent, resolveDirective, openBlock, createBlock, withCtx, withDirectives, createElementBlock, normalizeStyle, renderSlot } from 'vue';
|
|
3
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = ["loading-tip"];
|
|
6
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
|
+
const _component_overlayScrollbars_component = resolveComponent("overlayScrollbars-component");
|
|
8
|
+
const _directive_target_loading = resolveDirective("target-loading");
|
|
9
|
+
return openBlock(), createBlock(_component_overlayScrollbars_component, { ref: "wrapperRef" }, {
|
|
10
|
+
default: withCtx(() => [
|
|
11
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
12
|
+
ref: "spinRef",
|
|
13
|
+
style: normalizeStyle(_ctx.spinStyle),
|
|
14
|
+
"loading-tip": _ctx.loadingTip
|
|
15
|
+
}, [
|
|
16
|
+
renderSlot(_ctx.$slots, "default")
|
|
17
|
+
], 12, _hoisted_1)), [
|
|
18
|
+
[_directive_target_loading, _ctx.loading]
|
|
19
|
+
])
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 512);
|
|
23
|
+
}
|
|
24
|
+
const ModalWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
25
|
+
|
|
26
|
+
export { ModalWrapper as default };
|