@qqt-product/ui 15.0.0 → 16.0.1
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.es.js +85508 -82878
- package/dist/index.umd.js +143 -161
- package/dist/lib/components/audit-modal/index.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/afterSignModal.vue.d.ts +232 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +15 -4
- package/dist/lib/components/basicTitle/index.d.ts +96 -0
- package/dist/lib/components/basicTitle/src/BasicHelp.d.ts +99 -0
- package/dist/lib/components/basicTitle/src/BasicTitle.vue.d.ts +123 -0
- package/dist/lib/components/breadcrumb/index.d.ts +2 -7
- package/dist/lib/components/card-list-layout/index.d.ts +1 -1
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +3 -3
- package/dist/lib/components/cascader/src/cascader-types.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -3
- package/dist/lib/components/checkbox/index.d.ts +4 -4
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/dist/lib/components/code-editor-model/index.d.ts +5 -0
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +23 -9
- package/dist/lib/components/countdown/index.d.ts +2 -2
- package/dist/lib/components/countdown/src/countdown.d.ts +2 -2
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/custom-remote-select/src/type.d.ts +7 -0
- package/dist/lib/components/detail-grid/index.d.ts +14 -4
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +14 -4
- package/dist/lib/components/detail-page-layout/index.d.ts +10 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +11 -1
- package/dist/lib/components/edit-form/index.d.ts +2 -2
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/dist/lib/components/edit-grid/index.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +1 -0
- package/dist/lib/components/empty/index.d.ts +2 -2
- package/dist/lib/components/flow-view/index.d.ts +1 -1
- package/dist/lib/components/flow-view/src/flow-view.d.ts +1 -1
- package/dist/lib/components/import-modal/index.d.ts +2 -2
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +2 -2
- package/dist/lib/components/index.d.ts +6 -1
- package/dist/lib/components/ladder-price/index.d.ts +2 -2
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +2 -2
- package/dist/lib/components/layout/index.d.ts +8 -3
- package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +8 -3
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +7 -2
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +7 -2
- package/dist/lib/components/layout-anchor/index.d.ts +5 -0
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +5 -0
- package/dist/lib/components/layout-pattern/index.d.ts +1 -170
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -169
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +6 -6
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/menu/index.d.ts +2 -80
- package/dist/lib/components/modal/index.d.ts +1364 -0
- package/dist/lib/components/modal/src/BasicModal.vue.d.ts +1358 -0
- package/dist/lib/components/modal/src/components/Modal.d.ts +255 -0
- package/dist/lib/components/modal/src/components/ModalClose.vue.d.ts +56 -0
- package/dist/lib/components/modal/src/components/ModalFooter.vue.d.ts +262 -0
- package/dist/lib/components/modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/dist/lib/components/modal/src/components/ModalWrapper.vue.d.ts +102 -0
- package/dist/lib/components/modal/src/hooks/useModal.d.ts +6 -0
- package/dist/lib/components/modal/src/hooks/useModalContext.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalDrag.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/dist/lib/components/modal/src/props.d.ts +150 -0
- package/dist/lib/components/modal/src/typing.d.ts +204 -0
- package/dist/lib/components/page-layout/index.d.ts +175 -2
- package/dist/lib/components/{layout-pattern/src/hook/use-audit-button-hook.d.ts → page-layout/src/hook/use-audit-button.d.ts} +59 -3
- package/dist/lib/components/page-layout/src/hook/use-custom-format.d.ts +9 -0
- package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +42 -0
- package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +64 -0
- package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +26 -0
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +33 -1
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +174 -1
- package/dist/lib/components/page-layout/src/util.d.ts +18 -2
- package/dist/lib/components/radio/index.d.ts +4 -4
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/dist/lib/components/relation-graph/index.d.ts +6 -0
- package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +89 -0
- package/dist/lib/components/remote-select/index.d.ts +2 -2
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +2 -2
- package/dist/lib/components/sale-template/index.d.ts +2 -1
- package/dist/lib/components/scrollContainer/index.d.ts +14 -0
- package/dist/lib/components/scrollContainer/src/ScrollContainer.vue.d.ts +10 -0
- package/dist/lib/components/scrollContainer/src/typing.d.ts +17 -0
- package/dist/lib/components/scrollbar/index.d.ts +80 -0
- package/dist/lib/components/scrollbar/src/Scrollbar.vue.d.ts +73 -0
- package/dist/lib/components/scrollbar/src/bar.d.ts +15 -0
- package/dist/lib/components/scrollbar/src/types.d.ts +18 -0
- package/dist/lib/components/scrollbar/src/util.d.ts +8 -0
- package/dist/lib/components/select/index.d.ts +2 -2
- package/dist/lib/components/select/src/select.vue.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +2 -2
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +2 -2
- package/dist/lib/components/tree-select/index.d.ts +2 -2
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +2 -2
- package/dist/lib/components/upload-file/index.d.ts +4 -4
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +4 -4
- package/dist/lib/components/upload-image/index.d.ts +6 -4
- package/dist/lib/components/upload-image/src/preview.vue.d.ts +16 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +6 -4
- package/dist/lib/hooks/core/useAttrs.d.ts +9 -0
- package/dist/lib/hooks/core/useContext.d.ts +11 -0
- package/dist/lib/hooks/core/useTimeout.d.ts +11 -0
- package/dist/lib/hooks/event/useScrollTo.d.ts +10 -0
- package/dist/lib/hooks/event/useWindowSizeFn.d.ts +7 -0
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/types/index.d.ts +32 -0
- package/dist/lib/utils/domUtils.d.ts +36 -0
- package/dist/lib/utils/event/index.d.ts +3 -0
- package/dist/lib/utils/helper/tsxHelper.d.ts +13 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/is.d.ts +22 -0
- package/dist/lib/utils/log.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +15 -13
- /package/dist/lib/components/page-layout/src/hook/{use-merge-defaultValues-hook.d.ts → use-merge-defaultValues.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-page-data-hook.d.ts → use-page-data.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-ref-instance-hook.d.ts → use-ref-instance.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-remote-config-hook.d.ts → use-remote-config.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-uid-hook.d.ts → use-uid.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export interface UseFullScreenContext {
|
|
3
|
+
wrapClassName: Ref<string | undefined>;
|
|
4
|
+
modalWrapperRef: Ref<ComponentRef>;
|
|
5
|
+
extHeightRef: Ref<number>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useFullScreen(context: UseFullScreenContext): {
|
|
8
|
+
getWrapClassName: ComputedRef<string>;
|
|
9
|
+
handleFullScreen: (e: Event) => void;
|
|
10
|
+
fullScreenRef: Ref<boolean>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { PropType, CSSProperties, VNodeChild } from 'vue';
|
|
2
|
+
import type { ButtonProps, ModalWrapperProps } from './typing';
|
|
3
|
+
type VueNode = VNodeChild | JSX.Element;
|
|
4
|
+
export declare const modalProps: {
|
|
5
|
+
visible: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
};
|
|
8
|
+
scrollTop: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
height: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
};
|
|
15
|
+
minHeight: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
};
|
|
18
|
+
draggable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
centered: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
26
|
+
modalHeaderHeight: NumberConstructor;
|
|
27
|
+
modalFooterHeight: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
export declare const basicProps: {
|
|
30
|
+
visible: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
};
|
|
33
|
+
scrollTop: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
height: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
};
|
|
40
|
+
minHeight: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
};
|
|
43
|
+
draggable: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
centered: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
};
|
|
50
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
51
|
+
modalHeaderHeight: NumberConstructor;
|
|
52
|
+
modalFooterHeight: NumberConstructor;
|
|
53
|
+
} & {
|
|
54
|
+
defaultFullscreen: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
};
|
|
57
|
+
canFullscreen: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
wrapperFooterOffset: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
helpMessage: PropType<string | string[]>;
|
|
66
|
+
useWrapper: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
loading: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
};
|
|
73
|
+
loadingTip: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @description: Show close button
|
|
78
|
+
*/
|
|
79
|
+
showCancelBtn: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @description: Show confirmation button
|
|
85
|
+
*/
|
|
86
|
+
showOkBtn: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
wrapperProps: PropType<Partial<ModalWrapperProps>>;
|
|
91
|
+
afterClose: PropType<() => Promise<VueNode>>;
|
|
92
|
+
bodyStyle: PropType<CSSProperties>;
|
|
93
|
+
closable: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
closeIcon: PropType<VueNode>;
|
|
98
|
+
confirmLoading: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
};
|
|
101
|
+
destroyOnClose: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
};
|
|
104
|
+
footer: PropType<VueNode>;
|
|
105
|
+
getContainer: PropType<() => any>;
|
|
106
|
+
mask: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
maskClosable: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
keyboard: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
maskStyle: PropType<CSSProperties>;
|
|
119
|
+
okType: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
okButtonProps: PropType<ButtonProps>;
|
|
124
|
+
cancelButtonProps: PropType<ButtonProps>;
|
|
125
|
+
title: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
visible: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
};
|
|
131
|
+
open: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
};
|
|
134
|
+
width: PropType<string | number>;
|
|
135
|
+
wrapClassName: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
zIndex: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
};
|
|
142
|
+
maxHeight: {
|
|
143
|
+
type: NumberConstructor;
|
|
144
|
+
};
|
|
145
|
+
enableComment: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export {};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type { CSSProperties, VNodeChild, ComputedRef } from 'vue';
|
|
2
|
+
export type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
3
|
+
export type ButtonType = 'link' | 'default' | 'primary' | 'ghost' | 'dashed' | 'text';
|
|
4
|
+
export type ButtonShape = 'default' | 'circle' | 'round';
|
|
5
|
+
export type ButtonHTMLType = 'submit' | 'button' | 'reset';
|
|
6
|
+
export type LegacyButtonType = ButtonType | 'danger';
|
|
7
|
+
export type MouseEventHandler = (e: MouseEvent) => void;
|
|
8
|
+
export type ButtonProps = {
|
|
9
|
+
htmlType?: ButtonHTMLType | undefined;
|
|
10
|
+
loading?: boolean | {
|
|
11
|
+
delay?: number;
|
|
12
|
+
} | undefined;
|
|
13
|
+
prefixCls?: string | undefined;
|
|
14
|
+
type?: ButtonType | undefined;
|
|
15
|
+
shape?: ButtonShape | undefined;
|
|
16
|
+
size?: SizeType;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
ghost?: boolean | undefined;
|
|
19
|
+
block?: boolean | undefined;
|
|
20
|
+
danger?: boolean | undefined;
|
|
21
|
+
icon?: any;
|
|
22
|
+
href?: string | undefined;
|
|
23
|
+
target?: string | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
onClick?: MouseEventHandler | MouseEventHandler[] | undefined;
|
|
26
|
+
onMousedown?: MouseEventHandler | MouseEventHandler[] | undefined;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @description: 弹窗对外暴露的方法
|
|
30
|
+
*/
|
|
31
|
+
export interface ModalMethods {
|
|
32
|
+
setModalProps: (props: Partial<ModalProps>) => void;
|
|
33
|
+
emitVisible?: (visible: boolean, uid: number) => void;
|
|
34
|
+
redoModalHeight?: () => void;
|
|
35
|
+
}
|
|
36
|
+
export type RegisterFn = (modalMethods: ModalMethods, uuid: string) => void;
|
|
37
|
+
export interface ReturnMethods extends ModalMethods {
|
|
38
|
+
openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
|
|
39
|
+
closeModal: () => void;
|
|
40
|
+
getVisible?: ComputedRef<boolean>;
|
|
41
|
+
getOpen?: ComputedRef<boolean>;
|
|
42
|
+
}
|
|
43
|
+
export type UseModalReturnType = [RegisterFn, ReturnMethods];
|
|
44
|
+
export interface ReturnInnerMethods extends ModalMethods {
|
|
45
|
+
closeModal: () => void;
|
|
46
|
+
changeLoading: (loading: boolean) => void;
|
|
47
|
+
changeOkLoading: (loading: boolean) => void;
|
|
48
|
+
getVisible?: ComputedRef<boolean>;
|
|
49
|
+
getOpen?: ComputedRef<boolean>;
|
|
50
|
+
redoModalHeight: () => void;
|
|
51
|
+
}
|
|
52
|
+
export type UseModalInnerReturnType = [RegisterFn, ReturnInnerMethods];
|
|
53
|
+
export interface ModalProps {
|
|
54
|
+
minHeight?: number;
|
|
55
|
+
height?: number;
|
|
56
|
+
wrapperFooterOffset?: number;
|
|
57
|
+
draggable?: boolean;
|
|
58
|
+
scrollTop?: boolean;
|
|
59
|
+
canFullscreen?: boolean;
|
|
60
|
+
defaultFullscreen?: boolean;
|
|
61
|
+
visible?: boolean;
|
|
62
|
+
open?: boolean;
|
|
63
|
+
helpMessage: string | string[];
|
|
64
|
+
useWrapper: boolean;
|
|
65
|
+
loading: boolean;
|
|
66
|
+
loadingTip?: string;
|
|
67
|
+
wrapperProps: Omit<ModalWrapperProps, 'loading'>;
|
|
68
|
+
showOkBtn: boolean;
|
|
69
|
+
showCancelBtn: boolean;
|
|
70
|
+
closeFunc: () => Promise<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Specify a function that will be called when modal is closed completely.
|
|
73
|
+
* @type Function
|
|
74
|
+
*/
|
|
75
|
+
afterClose?: () => any;
|
|
76
|
+
/**
|
|
77
|
+
* Body style for modal body element. Such as height, padding etc.
|
|
78
|
+
* @default {}
|
|
79
|
+
* @type object
|
|
80
|
+
*/
|
|
81
|
+
bodyStyle?: () => CSSProperties;
|
|
82
|
+
/**
|
|
83
|
+
* Text of the Cancel button
|
|
84
|
+
* @default 'cancel'
|
|
85
|
+
* @type string
|
|
86
|
+
*/
|
|
87
|
+
cancelText?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Centered Modal
|
|
90
|
+
* @default false
|
|
91
|
+
* @type boolean
|
|
92
|
+
*/
|
|
93
|
+
centered?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether a close (x) button is visible on top right of the modal dialog or not
|
|
96
|
+
* @default true
|
|
97
|
+
* @type boolean
|
|
98
|
+
*/
|
|
99
|
+
closable?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether a close (x) button is visible on top right of the modal dialog or not
|
|
102
|
+
*/
|
|
103
|
+
closeIcon?: VNodeChild | JSX.Element;
|
|
104
|
+
/**
|
|
105
|
+
* Whether to apply loading visual effect for OK button or not
|
|
106
|
+
* @default false
|
|
107
|
+
* @type boolean
|
|
108
|
+
*/
|
|
109
|
+
confirmLoading?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Whether to unmount child components on onClose
|
|
112
|
+
* @default false
|
|
113
|
+
* @type boolean
|
|
114
|
+
*/
|
|
115
|
+
destroyOnClose?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Footer content, set as :footer="null" when you don't need default buttons
|
|
118
|
+
* @default OK and Cancel buttons
|
|
119
|
+
* @type any (string | slot)
|
|
120
|
+
*/
|
|
121
|
+
footer?: VNodeChild | JSX.Element;
|
|
122
|
+
/**
|
|
123
|
+
* Return the mount node for Modal
|
|
124
|
+
* @default () => document.body
|
|
125
|
+
* @type Function
|
|
126
|
+
*/
|
|
127
|
+
getContainer?: (instance: any) => HTMLElement;
|
|
128
|
+
/**
|
|
129
|
+
* Whether show mask or not.
|
|
130
|
+
* @default true
|
|
131
|
+
* @type boolean
|
|
132
|
+
*/
|
|
133
|
+
mask?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether to close the modal dialog when the mask (area outside the modal) is clicked
|
|
136
|
+
* @default true
|
|
137
|
+
* @type boolean
|
|
138
|
+
*/
|
|
139
|
+
maskClosable?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Style for modal's mask element.
|
|
142
|
+
* @default {}
|
|
143
|
+
* @type object
|
|
144
|
+
*/
|
|
145
|
+
maskStyle?: () => CSSProperties;
|
|
146
|
+
/**
|
|
147
|
+
* Text of the OK button
|
|
148
|
+
* @default 'OK'
|
|
149
|
+
* @type string
|
|
150
|
+
*/
|
|
151
|
+
okText?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Button type of the OK button
|
|
154
|
+
* @default 'primary'
|
|
155
|
+
* @type string
|
|
156
|
+
*/
|
|
157
|
+
okType?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
|
158
|
+
/**
|
|
159
|
+
* The ok button props, follow jsx rules
|
|
160
|
+
* @type object
|
|
161
|
+
*/
|
|
162
|
+
okButtonProps?: ButtonProps;
|
|
163
|
+
/**
|
|
164
|
+
* The cancel button props, follow jsx rules
|
|
165
|
+
* @type object
|
|
166
|
+
*/
|
|
167
|
+
cancelButtonProps?: ButtonProps;
|
|
168
|
+
/**
|
|
169
|
+
* The modal dialog's title
|
|
170
|
+
* @type any (string | slot)
|
|
171
|
+
*/
|
|
172
|
+
title?: VNodeChild | JSX.Element;
|
|
173
|
+
/**
|
|
174
|
+
* Width of the modal dialog
|
|
175
|
+
* @default 520
|
|
176
|
+
* @type string | number
|
|
177
|
+
*/
|
|
178
|
+
width?: string | number;
|
|
179
|
+
/**
|
|
180
|
+
* The class name of the container of the modal dialog
|
|
181
|
+
* @type string
|
|
182
|
+
*/
|
|
183
|
+
wrapClassName?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The z-index of the Modal
|
|
186
|
+
* @default 1000
|
|
187
|
+
* @type number
|
|
188
|
+
*/
|
|
189
|
+
zIndex?: number;
|
|
190
|
+
enableComment?: boolean;
|
|
191
|
+
modalHeaderHeight: number;
|
|
192
|
+
modalFooterHeight: number;
|
|
193
|
+
}
|
|
194
|
+
export interface ModalWrapperProps {
|
|
195
|
+
footerOffset?: number;
|
|
196
|
+
loading: boolean;
|
|
197
|
+
modalHeaderHeight: number;
|
|
198
|
+
modalFooterHeight: number;
|
|
199
|
+
minHeight: number;
|
|
200
|
+
height: number;
|
|
201
|
+
visible: boolean;
|
|
202
|
+
fullScreen: boolean;
|
|
203
|
+
useWrapper: boolean;
|
|
204
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ObjectMap } from '../list-page-layout';
|
|
2
|
+
import type { LayoutConfig, CurrentRow, PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload } from '../edit-page-layout';
|
|
2
3
|
import type { RecordString } from '../select-modal';
|
|
3
4
|
import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
|
|
4
5
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
@@ -8,7 +9,7 @@ export * from './src/token';
|
|
|
8
9
|
export * from './src/constant';
|
|
9
10
|
export * from './src/util';
|
|
10
11
|
import usePromiseStepHook from './src/hook/use-promise-step';
|
|
11
|
-
import useRefInstanceHook from './src/hook/use-ref-instance
|
|
12
|
+
import useRefInstanceHook from './src/hook/use-ref-instance';
|
|
12
13
|
export { usePromiseStepHook, useRefInstanceHook };
|
|
13
14
|
export { QPageLayout };
|
|
14
15
|
declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOptions<{
|
|
@@ -23,6 +24,178 @@ declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOp
|
|
|
23
24
|
loading: Ref<boolean>;
|
|
24
25
|
layoutLoading: Ref<boolean>;
|
|
25
26
|
customLoading: Readonly<Ref<boolean>>;
|
|
27
|
+
currentRow: CurrentRow;
|
|
28
|
+
fileVisible: Ref<boolean>;
|
|
29
|
+
fileProps: Ref<{
|
|
30
|
+
readonly data?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
businessType: string;
|
|
33
|
+
headId: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
36
|
+
readonly visible?: boolean | undefined;
|
|
37
|
+
readonly currentRow?: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
templateNumber: string;
|
|
40
|
+
templateVersion: number;
|
|
41
|
+
templateAccount: string;
|
|
42
|
+
busAccount: string;
|
|
43
|
+
elsAccount: string;
|
|
44
|
+
} | undefined;
|
|
45
|
+
readonly action?: string | undefined;
|
|
46
|
+
readonly accept?: string | undefined;
|
|
47
|
+
readonly dictCode?: string | undefined;
|
|
48
|
+
readonly userInfo?: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
elsAccount: string;
|
|
51
|
+
subAccount: string;
|
|
52
|
+
serivceUrl: string;
|
|
53
|
+
} | undefined;
|
|
54
|
+
readonly role?: string | undefined;
|
|
55
|
+
readonly property?: string | undefined;
|
|
56
|
+
readonly defaultFileType?: string | undefined;
|
|
57
|
+
readonly requiredFileType?: boolean | undefined;
|
|
58
|
+
readonly defaultFileBelong?: string | undefined;
|
|
59
|
+
readonly limitSize?: number | undefined;
|
|
60
|
+
readonly acceptDictCode?: string | undefined;
|
|
61
|
+
readonly maxCount?: number | undefined;
|
|
62
|
+
readonly isOss?: boolean | undefined;
|
|
63
|
+
readonly isGridUpload?: boolean | undefined;
|
|
64
|
+
readonly itemNumberKey?: string | undefined;
|
|
65
|
+
readonly itemNumberLabel?: string | undefined;
|
|
66
|
+
readonly itemNumberValueProp?: string | undefined;
|
|
67
|
+
readonly itemNumberDefaultValue?: string | undefined;
|
|
68
|
+
readonly itemNumberSelectIndex?: boolean | undefined;
|
|
69
|
+
readonly disabledItemNumber?: boolean | undefined;
|
|
70
|
+
readonly itemInfo?: RecordString[] | undefined;
|
|
71
|
+
readonly fileTypeList?: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
title: string;
|
|
74
|
+
value: string;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
readonly actionRoutePath?: string | undefined;
|
|
77
|
+
readonly sourceNumberType?: string | undefined;
|
|
78
|
+
readonly onConfirmBeforeUpload?: Function | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
handleChangeFiles: (fileResult: RecordString[]) => void;
|
|
81
|
+
importVisible: Ref<boolean>;
|
|
82
|
+
importProps: Ref<{
|
|
83
|
+
button: {
|
|
84
|
+
title: string;
|
|
85
|
+
i18nKey?: string | undefined;
|
|
86
|
+
key: string | symbol;
|
|
87
|
+
args: PageButtonArgsFunctionType | {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
url: string;
|
|
90
|
+
};
|
|
91
|
+
authorityCode?: string | undefined;
|
|
92
|
+
attrs?: RecordString | undefined;
|
|
93
|
+
icon?: {
|
|
94
|
+
type: string;
|
|
95
|
+
size: number;
|
|
96
|
+
color?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
emit?: boolean | undefined;
|
|
99
|
+
emitKey?: string | undefined;
|
|
100
|
+
showMessage?: boolean | undefined;
|
|
101
|
+
checkBefore?: boolean | undefined;
|
|
102
|
+
confirm?: {
|
|
103
|
+
title: string;
|
|
104
|
+
content: string;
|
|
105
|
+
} | undefined;
|
|
106
|
+
dropdown?: boolean | undefined;
|
|
107
|
+
isExistFrozenSource?: boolean | undefined;
|
|
108
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
109
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
110
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
111
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
112
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
113
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
114
|
+
};
|
|
115
|
+
isEditPage: boolean;
|
|
116
|
+
token: string;
|
|
117
|
+
}>;
|
|
118
|
+
auditModalVisible: Ref<boolean>;
|
|
119
|
+
approvalModalVisible: Ref<boolean>;
|
|
120
|
+
nodeHistoryModalVisible: Ref<boolean>;
|
|
121
|
+
auditModalProps: Ref<{
|
|
122
|
+
width?: string | undefined;
|
|
123
|
+
form?: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
type: string;
|
|
126
|
+
label: string;
|
|
127
|
+
fieldName: string;
|
|
128
|
+
required?: string | undefined;
|
|
129
|
+
attrs?: ObjectMap | undefined;
|
|
130
|
+
extends?: ObjectMap | undefined;
|
|
131
|
+
dictCode?: string | undefined;
|
|
132
|
+
options?: any[] | undefined;
|
|
133
|
+
click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
137
|
+
visible?: boolean | undefined;
|
|
138
|
+
currentRow?: any;
|
|
139
|
+
businessType?: string | undefined;
|
|
140
|
+
token?: string | undefined;
|
|
141
|
+
busAccount?: string | undefined;
|
|
142
|
+
taskAction?: string | undefined;
|
|
143
|
+
needFlow?: string | undefined;
|
|
144
|
+
flowIframeUrl?: string | undefined;
|
|
145
|
+
customParams?: Record<string, any> | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
auditModalConfirm: Ref<any>;
|
|
148
|
+
auditModalCancel: Ref<any>;
|
|
149
|
+
flowVisible: Ref<boolean>;
|
|
150
|
+
flowProps: Ref<{
|
|
151
|
+
button?: {
|
|
152
|
+
title: string;
|
|
153
|
+
i18nKey?: string | undefined;
|
|
154
|
+
key: string | symbol;
|
|
155
|
+
args: PageButtonArgsFunctionType | {
|
|
156
|
+
[x: string]: unknown;
|
|
157
|
+
url: string;
|
|
158
|
+
};
|
|
159
|
+
authorityCode?: string | undefined;
|
|
160
|
+
attrs?: RecordString | undefined;
|
|
161
|
+
icon?: {
|
|
162
|
+
type: string;
|
|
163
|
+
size: number;
|
|
164
|
+
color?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
emit?: boolean | undefined;
|
|
167
|
+
emitKey?: string | undefined;
|
|
168
|
+
showMessage?: boolean | undefined;
|
|
169
|
+
checkBefore?: boolean | undefined;
|
|
170
|
+
confirm?: {
|
|
171
|
+
title: string;
|
|
172
|
+
content: string;
|
|
173
|
+
} | undefined;
|
|
174
|
+
dropdown?: boolean | undefined;
|
|
175
|
+
isExistFrozenSource?: boolean | undefined;
|
|
176
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
177
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
178
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
179
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
180
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
181
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
width?: string | undefined;
|
|
184
|
+
title?: string | undefined;
|
|
185
|
+
onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
|
|
186
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
187
|
+
visible?: boolean | undefined;
|
|
188
|
+
currentRow?: any;
|
|
189
|
+
token?: string | undefined;
|
|
190
|
+
flowId?: string | undefined;
|
|
191
|
+
isDesign?: boolean | undefined;
|
|
192
|
+
workFlowType?: string | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
afterSignModalVisible: Ref<boolean>;
|
|
195
|
+
handleAfterSignModal: () => void;
|
|
196
|
+
layoutExtraInfo: {
|
|
197
|
+
token: string;
|
|
198
|
+
};
|
|
26
199
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
|
|
27
200
|
[x: string]: unknown;
|
|
28
201
|
}>>>>, {
|
|
@@ -1,17 +1,66 @@
|
|
|
1
1
|
import type { ObjectMap } from '../../../list-page-layout';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, PageButton, CurrentRow } from '../../../edit-page-layout';
|
|
4
|
+
import type { RecordString } from '../../../edit-page-layout';
|
|
4
5
|
interface auditOption {
|
|
5
6
|
currentRow: CurrentRow;
|
|
6
7
|
businessType: string;
|
|
7
8
|
layoutExtraInfo: {
|
|
8
9
|
token: string;
|
|
9
10
|
};
|
|
11
|
+
pageData: Ref<RecordString>;
|
|
10
12
|
}
|
|
11
|
-
export default function useAuditButtonHook({ currentRow, businessType, layoutExtraInfo }: auditOption): {
|
|
13
|
+
export default function useAuditButtonHook({ currentRow, businessType, layoutExtraInfo, pageData }: auditOption): {
|
|
14
|
+
flowVisible: Ref<boolean>;
|
|
15
|
+
flowProps: Ref<{
|
|
16
|
+
button?: {
|
|
17
|
+
title: string;
|
|
18
|
+
i18nKey?: string | undefined;
|
|
19
|
+
key: string | symbol;
|
|
20
|
+
args: PageButtonArgsFunctionType | {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
authorityCode?: string | undefined;
|
|
25
|
+
attrs?: RecordString | undefined;
|
|
26
|
+
icon?: {
|
|
27
|
+
type: string;
|
|
28
|
+
size: number;
|
|
29
|
+
color?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
emit?: boolean | undefined;
|
|
32
|
+
emitKey?: string | undefined;
|
|
33
|
+
showMessage?: boolean | undefined;
|
|
34
|
+
checkBefore?: boolean | undefined;
|
|
35
|
+
confirm?: {
|
|
36
|
+
title: string;
|
|
37
|
+
content: string;
|
|
38
|
+
} | undefined;
|
|
39
|
+
dropdown?: boolean | undefined;
|
|
40
|
+
isExistFrozenSource?: boolean | undefined;
|
|
41
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
42
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
43
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
44
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
45
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
46
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
width?: string | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
|
|
51
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
52
|
+
visible?: boolean | undefined;
|
|
53
|
+
currentRow?: any;
|
|
54
|
+
token?: string | undefined;
|
|
55
|
+
flowId?: string | undefined;
|
|
56
|
+
isDesign?: boolean | undefined;
|
|
57
|
+
workFlowType?: string | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
afterSignModalVisible: Ref<boolean>;
|
|
12
60
|
auditModalConfirm: Ref<any>;
|
|
13
61
|
auditModalCancel: Ref<any>;
|
|
14
62
|
auditModalProps: Ref<{
|
|
63
|
+
width?: string | undefined;
|
|
15
64
|
form?: {
|
|
16
65
|
[x: string]: unknown;
|
|
17
66
|
type: string;
|
|
@@ -31,7 +80,6 @@ export default function useAuditButtonHook({ currentRow, businessType, layoutExt
|
|
|
31
80
|
businessType?: string | undefined;
|
|
32
81
|
token?: string | undefined;
|
|
33
82
|
busAccount?: string | undefined;
|
|
34
|
-
width?: string | undefined;
|
|
35
83
|
taskAction?: string | undefined;
|
|
36
84
|
needFlow?: string | undefined;
|
|
37
85
|
flowIframeUrl?: string | undefined;
|
|
@@ -77,5 +125,13 @@ export default function useAuditButtonHook({ currentRow, businessType, layoutExt
|
|
|
77
125
|
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
78
126
|
}>;
|
|
79
127
|
handleSetCacheAuditButton: (btn: PageButton) => void;
|
|
128
|
+
handleAuditCommonModal: (btn: PageButton) => void;
|
|
129
|
+
handleAfterSignModal: () => void;
|
|
130
|
+
handleApprovalComment: () => void;
|
|
131
|
+
handleNodeHistory: () => void;
|
|
132
|
+
handleChat: () => void;
|
|
133
|
+
handlePrint: () => void;
|
|
134
|
+
handleAuditFlowViewModal: (btn: PageButton) => void;
|
|
135
|
+
handleOpenFlowViewModal: (btn: PageButton) => void;
|
|
80
136
|
};
|
|
81
137
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { CustomFormatItem, SetItemRequired, SetItemDisabled, SetItemRequiredOrDisabled, LayoutConfig, ColumnItem } from '../../../edit-page-layout';
|
|
3
|
+
export default function useCustomFormat(layoutConfig: Ref<LayoutConfig>): {
|
|
4
|
+
customFormatItem: CustomFormatItem;
|
|
5
|
+
setItemRequired: SetItemRequired;
|
|
6
|
+
setItemDisabled: SetItemDisabled;
|
|
7
|
+
setItemRequiredOrDisabled: SetItemRequiredOrDisabled;
|
|
8
|
+
getItemConfig: (groupCode: string, field: string) => ColumnItem;
|
|
9
|
+
};
|