@gct-paas/core-web 0.1.6-dev.19 → 0.1.6-dev.20

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.
Files changed (80) hide show
  1. package/dist/{JsBarcode-nqhcZPvn.js → JsBarcode-CWEjFQCg.js} +2 -2
  2. package/dist/{_plugin-vue_export-helper-CyelNe0I.js → _plugin-vue_export-helper-B35LNlRD.js} +2 -2
  3. package/dist/{chunk-C9ZKDnvz.js → chunk-HpW8Sg8U.js} +1 -1
  4. package/dist/components-BpPyUpai.js +2 -0
  5. package/dist/{cropper-BuY_n52N.js → cropper-C1mu2QTr.js} +2 -2
  6. package/dist/{de_DE-B3kLT_zG.js → de_DE-YNwX-fX4.js} +2 -2
  7. package/dist/{defineProperty-DiReHMuo.js → defineProperty-CD2ak0EA.js} +1 -1
  8. package/dist/{diagram-config-item-DYCiDqAy.js → diagram-config-item-BJKwQqe9.js} +2 -2
  9. package/dist/{diagram-config-item-reverse-BKf_yXvB.js → diagram-config-item-reverse-BOzMIA4L.js} +2 -2
  10. package/dist/{diagram-config-item-virtual-Dw36zOeJ.js → diagram-config-item-virtual-B5LubVsO.js} +2 -2
  11. package/dist/{en_US-tZ7NgN80.js → en_US-g6FEYBCI.js} +2 -2
  12. package/dist/{es_ES-DY2QXYwT.js → es_ES-Z0GZKMlm.js} +2 -2
  13. package/dist/{fr_FR-DbN-1gO0.js → fr_FR-CZj5WUAk.js} +2 -2
  14. package/dist/{hooks-BuOffqGU.js → hooks-DeDowLcc.js} +2 -2
  15. package/dist/{icon-next-picker-BmnIn29K.js → icon-next-picker-CFq-lz_9.js} +1 -1
  16. package/dist/index.min.css +1 -1
  17. package/dist/{ja_JP-BRcXbHEH.js → ja_JP-cdVlm4zt.js} +2 -2
  18. package/dist/loader.esm.min.js +2 -2
  19. package/dist/{monaco-editor-CHnBEX6V.js → monaco-editor-WsT5HN4r.js} +2 -2
  20. package/dist/{objectSpread2-BHKS0stT.js → objectSpread2-BX5mxK8X.js} +1 -1
  21. package/dist/{overlayscrollbars-vue-Cc8URtSg.js → overlayscrollbars-vue-Bw-ehDVl.js} +1 -1
  22. package/dist/{pt_PT-DjiZFPmH.js → pt_PT-D8jH_j8r.js} +2 -2
  23. package/dist/{relationship-diagram-config-BwVOMUAb.js → relationship-diagram-config-DfoqF9pQ.js} +2 -2
  24. package/dist/{rich-editor-DfsJmv_B.js → rich-editor-D9LLUpvZ.js} +2 -2
  25. package/dist/{ru_RU-Dw9N99Ox.js → ru_RU-BKz2q-Am.js} +2 -2
  26. package/dist/{template-D-UpvSne.js → template-nL-36e2v.js} +2 -2
  27. package/dist/{tr_TR-DCCv6rhK.js → tr_TR-BkdCTVee.js} +2 -2
  28. package/dist/{useMonacoEditor-C3S2BSui.js → useMonacoEditor-CtC6CTAo.js} +2 -2
  29. package/dist/{vi_VN-BNMXRAom.js → vi_VN-D_2pTOUH.js} +2 -2
  30. package/dist/{zh_CN-ywcxTWfr.js → zh_CN-CdoQJ08C.js} +2 -2
  31. package/dist/{zh_TW-DL4FRJVy.js → zh_TW-8IvF8KDZ.js} +2 -2
  32. package/es/components/design-view-layout/design-view-layout.css +24 -0
  33. package/es/components/design-view-layout/design-view-layout.mjs +11 -2
  34. package/es/components/index.d.ts +1 -0
  35. package/es/components/index.mjs +2 -0
  36. package/es/components/model-cascader/index.d.ts +34 -0
  37. package/es/components/model-cascader/index.mjs +98 -0
  38. package/es/components/model-cascader/style.css +54 -0
  39. package/es/components/model-cascader/util.d.ts +27 -0
  40. package/es/components/model-cascader/util.mjs +73 -0
  41. package/es/components/ui/basic-grid/basic-grid.vue.mjs +2 -2
  42. package/es/components/ui/basic-grid/basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs +2 -2
  43. package/es/components/ui/basic-grid/{basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css → basic-grid.vue_vue_type_style_index_0_scoped_99a4ea49_lang.css} +8 -8
  44. package/es/create-app-vue.mjs +2 -0
  45. package/es/index.d.ts +1 -0
  46. package/es/index.mjs +3 -1
  47. package/es/modules/category/category-sider.vue.d.ts +3 -3
  48. package/es/modules/category/category-sider.vue.mjs +2 -2
  49. package/es/modules/category/{category-sider.vue_vue_type_style_index_0_scoped_2ad0d132_lang.css → category-sider.vue_vue_type_style_index_0_scoped_67c7b3e4_lang.css} +33 -33
  50. package/es/modules/gct-form/components/flex-item/flex-item.mjs +1 -1
  51. package/es/modules/gct-form/components/grid-container/grid-container.mjs +1 -2
  52. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +3 -1
  53. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +7 -6
  54. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +3 -1
  55. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +7 -6
  56. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +7 -6
  57. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  58. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  59. package/es/modules/global-drawer/index.d.ts +4 -0
  60. package/es/modules/global-drawer/index.mjs +8 -0
  61. package/es/modules/global-drawer/src/BasicDrawer.vue.d.ts +171 -0
  62. package/es/modules/global-drawer/src/BasicDrawer.vue.mjs +6 -0
  63. package/es/modules/global-drawer/src/BasicDrawer.vue_vue_type_script_setup_true_name_BasicDrawer_lang.mjs +145 -0
  64. package/es/modules/global-drawer/src/BasicDrawer.vue_vue_type_style_index_0_lang.css +40 -0
  65. package/es/modules/global-drawer/src/components/DrawerFooter.vue.d.ts +95 -0
  66. package/es/modules/global-drawer/src/components/DrawerFooter.vue.mjs +42 -0
  67. package/es/modules/global-drawer/src/components/DrawerFooter.vue_vue_type_script_lang.mjs +38 -0
  68. package/es/modules/global-drawer/src/components/DrawerFooter.vue_vue_type_style_index_0_lang.css +11 -0
  69. package/es/modules/global-drawer/src/components/DrawerHeader.vue.d.ts +20 -0
  70. package/es/modules/global-drawer/src/components/DrawerHeader.vue.mjs +22 -0
  71. package/es/modules/global-drawer/src/components/DrawerHeader.vue_vue_type_script_lang.mjs +25 -0
  72. package/es/modules/global-drawer/src/components/DrawerHeader.vue_vue_type_style_index_0_lang.css +18 -0
  73. package/es/modules/global-drawer/src/props.d.ts +111 -0
  74. package/es/modules/global-drawer/src/props.mjs +62 -0
  75. package/es/modules/global-drawer/src/typing.d.ts +170 -0
  76. package/es/modules/global-drawer/src/useDrawer.d.ts +6 -0
  77. package/es/modules/global-drawer/src/useDrawer.mjs +6 -0
  78. package/package.json +9 -9
  79. package/dist/components-DtFY5KCF.js +0 -2
  80. /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
@@ -0,0 +1,171 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Partial<Record<string, (_: any) => any>> & {
4
+ titleToolbar?(_: {}): any;
5
+ title?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ confirmLoading: {
14
+ type: BooleanConstructor;
15
+ };
16
+ showCancelBtn: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
21
+ cancelText: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ showOkBtn: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
30
+ okText: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ okType: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ showFooter: {
39
+ type: BooleanConstructor;
40
+ };
41
+ footerHeight: {
42
+ type: import('vue').PropType<string | number>;
43
+ default: number;
44
+ };
45
+ isDetail: {
46
+ type: BooleanConstructor;
47
+ };
48
+ title: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ loadingText: {
53
+ type: StringConstructor;
54
+ };
55
+ showDetailBack: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ visible: {
60
+ type: BooleanConstructor;
61
+ };
62
+ loading: {
63
+ type: BooleanConstructor;
64
+ };
65
+ maskClosable: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ getContainer: import('vue').PropType<() => IObject>;
70
+ closeFunc: import('vue').PropType<() => Promise<boolean>>;
71
+ destroyOnClose: {
72
+ type: BooleanConstructor;
73
+ };
74
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
+ cancel: (...args: any[]) => void;
76
+ close: (...args: any[]) => void;
77
+ ok: (...args: any[]) => void;
78
+ register: (...args: any[]) => void;
79
+ "visible-change": (...args: any[]) => void;
80
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
81
+ confirmLoading: {
82
+ type: BooleanConstructor;
83
+ };
84
+ showCancelBtn: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
89
+ cancelText: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ showOkBtn: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
98
+ okText: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ okType: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ showFooter: {
107
+ type: BooleanConstructor;
108
+ };
109
+ footerHeight: {
110
+ type: import('vue').PropType<string | number>;
111
+ default: number;
112
+ };
113
+ isDetail: {
114
+ type: BooleanConstructor;
115
+ };
116
+ title: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ loadingText: {
121
+ type: StringConstructor;
122
+ };
123
+ showDetailBack: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ visible: {
128
+ type: BooleanConstructor;
129
+ };
130
+ loading: {
131
+ type: BooleanConstructor;
132
+ };
133
+ maskClosable: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ getContainer: import('vue').PropType<() => IObject>;
138
+ closeFunc: import('vue').PropType<() => Promise<boolean>>;
139
+ destroyOnClose: {
140
+ type: BooleanConstructor;
141
+ };
142
+ }>> & Readonly<{
143
+ onCancel?: ((...args: any[]) => any) | undefined;
144
+ onClose?: ((...args: any[]) => any) | undefined;
145
+ onOk?: ((...args: any[]) => any) | undefined;
146
+ onRegister?: ((...args: any[]) => any) | undefined;
147
+ "onVisible-change"?: ((...args: any[]) => any) | undefined;
148
+ }>, {
149
+ confirmLoading: boolean;
150
+ showCancelBtn: boolean;
151
+ cancelText: string;
152
+ showOkBtn: boolean;
153
+ okText: string;
154
+ okType: string;
155
+ showFooter: boolean;
156
+ footerHeight: string | number;
157
+ isDetail: boolean;
158
+ title: string;
159
+ showDetailBack: boolean;
160
+ visible: boolean;
161
+ loading: boolean;
162
+ maskClosable: boolean;
163
+ destroyOnClose: boolean;
164
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
165
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
166
+ export default _default;
167
+ type __VLS_WithTemplateSlots<T, S> = T & {
168
+ new (): {
169
+ $slots: S;
170
+ };
171
+ };
@@ -0,0 +1,6 @@
1
+ import BasicDrawer_vue_vue_type_script_setup_true_name_BasicDrawer_lang_default from "./BasicDrawer.vue_vue_type_script_setup_true_name_BasicDrawer_lang.mjs";
2
+ import './BasicDrawer.vue_vue_type_style_index_0_lang.css';/* empty css */
3
+ //#region src/modules/global-drawer/src/BasicDrawer.vue
4
+ var BasicDrawer_default = BasicDrawer_vue_vue_type_script_setup_true_name_BasicDrawer_lang_default;
5
+ //#endregion
6
+ export { BasicDrawer_default as default };
@@ -0,0 +1,145 @@
1
+ import { basicProps } from "./props.mjs";
2
+ import DrawerFooter_default from "./components/DrawerFooter.vue.mjs";
3
+ import DrawerHeader_default from "./components/DrawerHeader.vue.mjs";
4
+ import { computed, createBlock, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, mergeProps, nextTick, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDirective, toRaw, unref, useAttrs, useSlots, watch, withCtx, withDirectives } from "vue";
5
+ import { isFunction, isNumber } from "lodash-es";
6
+ import { deepMerge, t, useNamespace } from "@gct-paas/core";
7
+ import { Drawer } from "ant-design-vue";
8
+ //#region src/modules/global-drawer/src/BasicDrawer.vue?vue&type=script&setup=true&name=BasicDrawer&lang.ts
9
+ var BasicDrawer_vue_vue_type_script_setup_true_name_BasicDrawer_lang_default = /* @__PURE__ */ defineComponent({
10
+ __name: "BasicDrawer",
11
+ props: basicProps,
12
+ emits: [
13
+ "visible-change",
14
+ "ok",
15
+ "close",
16
+ "cancel",
17
+ "register"
18
+ ],
19
+ setup(__props, { emit: __emit }) {
20
+ const slots = useSlots();
21
+ const props = __props;
22
+ const emit = __emit;
23
+ const prefixCls = useNamespace("basic-drawer");
24
+ const visibleRef = ref(false);
25
+ const attrs = useAttrs();
26
+ const propsRef = ref(null);
27
+ const drawerInstance = {
28
+ setDrawerProps,
29
+ emitVisible: void 0
30
+ };
31
+ const instance = getCurrentInstance();
32
+ instance && emit("register", drawerInstance, instance.uid);
33
+ const getMergeProps = computed(() => {
34
+ return deepMerge(toRaw(props), unref(propsRef));
35
+ });
36
+ const getProps = computed(() => {
37
+ const opt = {
38
+ placement: "right",
39
+ ...unref(attrs),
40
+ ...unref(getMergeProps),
41
+ visible: unref(visibleRef),
42
+ title: void 0
43
+ };
44
+ const { isDetail, width, wrapClassName, getContainer } = opt;
45
+ if (isDetail) {
46
+ if (!width) opt.width = "100%";
47
+ const detailCls = `${prefixCls}__detail`;
48
+ opt.class = wrapClassName ? `${wrapClassName} ${detailCls}` : detailCls;
49
+ if (!getContainer) opt.getContainer = `.${prefixCls}-layout-content`;
50
+ }
51
+ return opt;
52
+ });
53
+ const getBindValues = computed(() => {
54
+ return {
55
+ ...attrs,
56
+ ...unref(getProps)
57
+ };
58
+ });
59
+ const getFooterHeight = computed(() => {
60
+ const { footerHeight, showFooter } = unref(getProps);
61
+ if (showFooter && footerHeight) return isNumber(footerHeight) ? `${footerHeight}px` : `${footerHeight.replace("px", "")}px`;
62
+ return `0px`;
63
+ });
64
+ const getScrollContentStyle = computed(() => {
65
+ return {
66
+ position: "relative",
67
+ height: `calc(100% - ${unref(getFooterHeight)})`
68
+ };
69
+ });
70
+ const getLoading = computed(() => {
71
+ return !!unref(getProps)?.loading;
72
+ });
73
+ watch(() => props.visible, (newVal, oldVal) => {
74
+ if (newVal !== oldVal) visibleRef.value = newVal;
75
+ }, { deep: true });
76
+ watch(() => visibleRef.value, (visible) => {
77
+ nextTick(() => {
78
+ emit("visible-change", visible);
79
+ instance && drawerInstance.emitVisible?.(visible, instance.uid);
80
+ });
81
+ });
82
+ async function onClose(e) {
83
+ const { closeFunc } = unref(getProps);
84
+ emit("close", e);
85
+ emit("cancel", { ok: false });
86
+ if (closeFunc && isFunction(closeFunc)) {
87
+ visibleRef.value = !await closeFunc();
88
+ return;
89
+ }
90
+ visibleRef.value = false;
91
+ }
92
+ function setDrawerProps(props) {
93
+ propsRef.value = deepMerge(unref(propsRef) || {}, props);
94
+ if (Reflect.has(props, "visible")) visibleRef.value = !!props.visible;
95
+ }
96
+ function handleOk() {
97
+ emit("ok");
98
+ }
99
+ return (_ctx, _cache) => {
100
+ const _component_overlayScrollbars_component = resolveComponent("overlayScrollbars-component");
101
+ const _directive_loading = resolveDirective("loading");
102
+ return openBlock(), createBlock(unref(Drawer), mergeProps({ class: unref(prefixCls) }, getBindValues.value, { onClose }), createSlots({
103
+ default: withCtx(() => [withDirectives((openBlock(), createBlock(_component_overlayScrollbars_component, {
104
+ style: normalizeStyle(getScrollContentStyle.value),
105
+ "loading-tip": _ctx.loadingText || unref(t)("sys.loadingText")
106
+ }, {
107
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
108
+ _: 3
109
+ }, 8, ["style", "loading-tip"])), [[_directive_loading, getLoading.value]]), createVNode(DrawerFooter_default, mergeProps(getProps.value, {
110
+ height: getFooterHeight.value,
111
+ onClose,
112
+ onOk: handleOk
113
+ }), createSlots({ _: 2 }, [renderList(Object.keys(unref(slots)), (item) => {
114
+ return {
115
+ name: item,
116
+ fn: withCtx((data) => [renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))])
117
+ };
118
+ })]), 1040, ["height"])]),
119
+ _: 2
120
+ }, [!_ctx.$slots.title ? {
121
+ name: "title",
122
+ fn: withCtx(() => [createVNode(DrawerHeader_default, {
123
+ title: getMergeProps.value.title,
124
+ "is-detail": _ctx.isDetail,
125
+ "show-detail-back": _ctx.showDetailBack,
126
+ onClose
127
+ }, {
128
+ titleToolbar: withCtx(() => [renderSlot(_ctx.$slots, "titleToolbar")]),
129
+ _: 3
130
+ }, 8, [
131
+ "title",
132
+ "is-detail",
133
+ "show-detail-back"
134
+ ])]),
135
+ key: "0"
136
+ } : {
137
+ name: "title",
138
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
139
+ key: "1"
140
+ }]), 1040, ["class"]);
141
+ };
142
+ }
143
+ });
144
+ //#endregion
145
+ export { BasicDrawer_vue_vue_type_script_setup_true_name_BasicDrawer_lang_default as default };
@@ -0,0 +1,40 @@
1
+ .basic-drawer .ant-drawer-wrapper-body {
2
+ overflow: hidden;
3
+ }
4
+ .basic-drawer .ant-drawer-close:hover {
5
+ color: var(--ant-error-color);
6
+ }
7
+ .basic-drawer .ant-drawer-body {
8
+ height: calc(100% - 60px);
9
+ padding: 0;
10
+ }
11
+ .basic-drawer .ant-drawer-body .scrollbar__wrap {
12
+ margin-bottom: 0 !important;
13
+ padding: 16px !important;
14
+ }
15
+ .basic-drawer .ant-drawer-body > .scrollbar > .scrollbar__bar.is-horizontal {
16
+ display: none;
17
+ }
18
+ .basic-drawer__detail {
19
+ position: absolute;
20
+ }
21
+ .basic-drawer__detail .ant-drawer-header {
22
+ box-sizing: border-box;
23
+ width: 100%;
24
+ height: 40px;
25
+ padding: 0;
26
+ border-top: 1px solid var(--gct-color-border);
27
+ }
28
+ .basic-drawer__detail .ant-drawer-title {
29
+ height: 100%;
30
+ }
31
+ .basic-drawer__detail .ant-drawer-close {
32
+ height: 40px;
33
+ line-height: 40px;
34
+ }
35
+ .basic-drawer__detail .scrollbar__wrap {
36
+ padding: 0 !important;
37
+ }
38
+ .basic-drawer__detail .ant-drawer-body {
39
+ height: calc(100% - 40px);
40
+ }
@@ -0,0 +1,95 @@
1
+ import { CSSProperties } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ confirmLoading: {
4
+ type: BooleanConstructor;
5
+ };
6
+ showCancelBtn: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
11
+ cancelText: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ showOkBtn: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
20
+ okText: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ okType: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ showFooter: {
29
+ type: BooleanConstructor;
30
+ };
31
+ footerHeight: {
32
+ type: import('vue').PropType<string | number>;
33
+ default: number;
34
+ };
35
+ height: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ }>, {
40
+ handleOk: () => void;
41
+ prefixCls: string;
42
+ handleClose: () => void;
43
+ getStyle: import('vue').ComputedRef<CSSProperties>;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "ok")[], "close" | "ok", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ confirmLoading: {
46
+ type: BooleanConstructor;
47
+ };
48
+ showCancelBtn: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ cancelButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
53
+ cancelText: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ showOkBtn: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ okButtonProps: import('vue').PropType<import('ant-design-vue/es/button').ButtonProps>;
62
+ okText: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ okType: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ showFooter: {
71
+ type: BooleanConstructor;
72
+ };
73
+ footerHeight: {
74
+ type: import('vue').PropType<string | number>;
75
+ default: number;
76
+ };
77
+ height: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ }>> & Readonly<{
82
+ onClose?: ((...args: any[]) => any) | undefined;
83
+ onOk?: ((...args: any[]) => any) | undefined;
84
+ }>, {
85
+ confirmLoading: boolean;
86
+ showCancelBtn: boolean;
87
+ cancelText: string;
88
+ showOkBtn: boolean;
89
+ okText: string;
90
+ okType: string;
91
+ showFooter: boolean;
92
+ footerHeight: string | number;
93
+ height: string;
94
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
95
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import DrawerFooter_vue_vue_type_script_lang_default from "./DrawerFooter.vue_vue_type_script_lang.mjs";
3
+ import './DrawerFooter.vue_vue_type_style_index_0_lang.css';/* empty css */
4
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveComponent, toDisplayString, withCtx } from "vue";
5
+ //#region src/modules/global-drawer/src/components/DrawerFooter.vue
6
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7
+ const _component_a_button = resolveComponent("a-button");
8
+ return _ctx.showFooter || _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
9
+ key: 0,
10
+ class: normalizeClass([_ctx.prefixCls, "basic-drawer-footer"]),
11
+ style: normalizeStyle(_ctx.getStyle)
12
+ }, [!_ctx.$slots.footer ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
13
+ renderSlot(_ctx.$slots, "insertFooter"),
14
+ _ctx.showCancelBtn ? (openBlock(), createBlock(_component_a_button, mergeProps({ key: 0 }, _ctx.cancelButtonProps, {
15
+ class: "mr-2",
16
+ onClick: _ctx.handleClose
17
+ }), {
18
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.$t(_ctx.cancelText)), 1)]),
19
+ _: 1
20
+ }, 16, ["onClick"])) : createCommentVNode("", true),
21
+ renderSlot(_ctx.$slots, "centerFooter"),
22
+ _ctx.showOkBtn ? (openBlock(), createBlock(_component_a_button, mergeProps({
23
+ key: 1,
24
+ type: _ctx.okType
25
+ }, _ctx.okButtonProps, {
26
+ class: "mr-2",
27
+ loading: _ctx.confirmLoading,
28
+ onClick: _ctx.handleOk
29
+ }), {
30
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.$t(_ctx.okText)), 1)]),
31
+ _: 1
32
+ }, 16, [
33
+ "type",
34
+ "loading",
35
+ "onClick"
36
+ ])) : createCommentVNode("", true),
37
+ renderSlot(_ctx.$slots, "appendFooter")
38
+ ], 64)) : renderSlot(_ctx.$slots, "footer", { key: 1 })], 6)) : createCommentVNode("", true);
39
+ }
40
+ var DrawerFooter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(DrawerFooter_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
41
+ //#endregion
42
+ export { DrawerFooter_default as default };
@@ -0,0 +1,38 @@
1
+ import { footerProps } from "../props.mjs";
2
+ import { computed, defineComponent } from "vue";
3
+ //#region src/modules/global-drawer/src/components/DrawerFooter.vue?vue&type=script&lang.ts
4
+ var DrawerFooter_vue_vue_type_script_lang_default = defineComponent({
5
+ name: "BasicDrawerFooter",
6
+ props: {
7
+ ...footerProps,
8
+ height: {
9
+ type: String,
10
+ default: "60px"
11
+ }
12
+ },
13
+ emits: ["ok", "close"],
14
+ setup(props, { emit }) {
15
+ const prefixCls = "basic-drawer-footer";
16
+ const getStyle = computed(() => {
17
+ const heightStr = `${props.height}`;
18
+ return {
19
+ height: heightStr,
20
+ lineHeight: `calc(${heightStr} - 1px)`
21
+ };
22
+ });
23
+ function handleOk() {
24
+ emit("ok");
25
+ }
26
+ function handleClose() {
27
+ emit("close");
28
+ }
29
+ return {
30
+ handleOk,
31
+ prefixCls,
32
+ handleClose,
33
+ getStyle
34
+ };
35
+ }
36
+ });
37
+ //#endregion
38
+ export { DrawerFooter_vue_vue_type_script_lang_default as default };
@@ -0,0 +1,11 @@
1
+ .basic-drawer-footer {
2
+ position: absolute;
3
+ bottom: 0;
4
+ width: 100%;
5
+ padding: 0 12px 0 20px;
6
+ border-top: 1px solid var(--gct-color-border);
7
+ text-align: right;
8
+ }
9
+ .basic-drawer-footer > * {
10
+ margin-right: 8px;
11
+ }
@@ -0,0 +1,20 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ isDetail: BooleanConstructor;
3
+ showDetailBack: BooleanConstructor;
4
+ title: StringConstructor;
5
+ }>, {
6
+ prefixCls: string;
7
+ handleClose: () => void;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ isDetail: BooleanConstructor;
10
+ showDetailBack: BooleanConstructor;
11
+ title: StringConstructor;
12
+ }>> & Readonly<{
13
+ onClose?: ((...args: any[]) => any) | undefined;
14
+ }>, {
15
+ isDetail: boolean;
16
+ showDetailBack: boolean;
17
+ }, {}, {
18
+ ArrowLeftOutlined: import('@ant-design/icons-vue/lib/icons/ArrowLeftOutlined').ArrowLeftOutlinedIconType;
19
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import DrawerHeader_vue_vue_type_script_lang_default from "./DrawerHeader.vue_vue_type_script_lang.mjs";
3
+ import './DrawerHeader.vue_vue_type_style_index_0_lang.css';/* empty css */
4
+ import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, normalizeClass, openBlock, renderSlot, resolveComponent, toDisplayString } from "vue";
5
+ //#region src/modules/global-drawer/src/components/DrawerHeader.vue
6
+ var _hoisted_1 = { key: 1 };
7
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
8
+ const _component_ArrowLeftOutlined = resolveComponent("ArrowLeftOutlined");
9
+ return !_ctx.isDetail ? (openBlock(), createElementBlock("div", {
10
+ key: 0,
11
+ class: normalizeClass(_ctx.prefixCls)
12
+ }, [renderSlot(_ctx.$slots, "title"), createTextVNode(" " + toDisplayString(!_ctx.$slots.title ? _ctx.title : ""), 1)], 2)) : (openBlock(), createElementBlock("div", {
13
+ key: 1,
14
+ class: normalizeClass([_ctx.prefixCls, `${_ctx.prefixCls}--detail`])
15
+ }, [createElementVNode("span", { class: normalizeClass(`${_ctx.prefixCls}__twrap`) }, [_ctx.showDetailBack ? (openBlock(), createElementBlock("span", {
16
+ key: 0,
17
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
18
+ }, [createVNode(_component_ArrowLeftOutlined, { class: normalizeClass(`${_ctx.prefixCls}__back`) }, null, 8, ["class"])])) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)], 2), createElementVNode("span", { class: normalizeClass(`${_ctx.prefixCls}__toolbar`) }, [renderSlot(_ctx.$slots, "titleToolbar")], 2)], 2));
19
+ }
20
+ var DrawerHeader_default = /* @__PURE__ */ _plugin_vue_export_helper_default(DrawerHeader_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
21
+ //#endregion
22
+ export { DrawerHeader_default as default };
@@ -0,0 +1,25 @@
1
+ import { defineComponent } from "vue";
2
+ import { ArrowLeftOutlined } from "@ant-design/icons-vue";
3
+ //#region src/modules/global-drawer/src/components/DrawerHeader.vue?vue&type=script&lang.ts
4
+ var DrawerHeader_vue_vue_type_script_lang_default = defineComponent({
5
+ name: "BasicDrawerHeader",
6
+ components: { ArrowLeftOutlined },
7
+ props: {
8
+ isDetail: Boolean,
9
+ showDetailBack: Boolean,
10
+ title: String
11
+ },
12
+ emits: ["close"],
13
+ setup(_, { emit }) {
14
+ const prefixCls = "basic-drawer-header";
15
+ function handleClose() {
16
+ emit("close");
17
+ }
18
+ return {
19
+ prefixCls,
20
+ handleClose
21
+ };
22
+ }
23
+ });
24
+ //#endregion
25
+ export { DrawerHeader_vue_vue_type_script_lang_default as default };
@@ -0,0 +1,18 @@
1
+ .basic-drawer-header {
2
+ display: flex;
3
+ align-items: center;
4
+ height: 100%;
5
+ }
6
+ .basic-drawer-header__back {
7
+ padding: 0 12px;
8
+ cursor: pointer;
9
+ }
10
+ .basic-drawer-header__back:hover {
11
+ color: var(--ant-primary-color);
12
+ }
13
+ .basic-drawer-header__twrap {
14
+ flex: 1;
15
+ }
16
+ .basic-drawer-header__toolbar {
17
+ padding-right: 50px;
18
+ }