@qqt-product/ui 16.0.0 → 16.0.2

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 (44) hide show
  1. package/dist/index.es.js +61101 -60684
  2. package/dist/index.umd.js +125 -125
  3. package/dist/lib/components/detail-page-layout/index.d.ts +10 -0
  4. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +11 -1
  5. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +4 -0
  6. package/dist/lib/components/import-modal/index.d.ts +1 -1
  7. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
  8. package/dist/lib/components/layout/index.d.ts +1 -0
  9. package/dist/lib/components/layout/src/index.vue.d.ts +1 -0
  10. package/dist/lib/components/layout/src/sider/index.vue.d.ts +1 -0
  11. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +1 -0
  12. package/dist/lib/components/layout/src/types.d.ts +1 -0
  13. package/dist/lib/components/layout-pattern/index.d.ts +1 -175
  14. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -174
  15. package/dist/lib/components/list-page-layout/index.d.ts +1 -1
  16. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +1 -0
  17. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -0
  18. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
  19. package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +1 -1
  20. package/dist/lib/components/page-layout/index.d.ts +176 -2
  21. package/dist/lib/components/{layout-pattern/src/hook/use-audit-button-hook.d.ts → page-layout/src/hook/use-audit-button.d.ts} +58 -2
  22. package/dist/lib/components/page-layout/src/hook/use-custom-format.d.ts +9 -0
  23. package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +42 -0
  24. package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +64 -0
  25. package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +26 -0
  26. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +33 -1
  27. package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +175 -1
  28. package/dist/lib/components/select/index.d.ts +2 -3
  29. package/dist/lib/components/select/src/select.vue.d.ts +2 -3
  30. package/dist/lib/components/upload-image/index.d.ts +2 -1
  31. package/dist/lib/components/upload-image/src/preview.vue.d.ts +16 -0
  32. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +2 -1
  33. package/dist/lib/components/vxe-select/index.d.ts +1 -2
  34. package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +2 -3
  35. package/dist/lib/index.d.ts +1 -1
  36. package/dist/style.css +1 -1
  37. package/package.json +7 -7
  38. package/dist/lib/components/remote-select/index.d.ts +0 -83
  39. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +0 -79
  40. /package/dist/lib/components/page-layout/src/hook/{use-merge-defaultValues-hook.d.ts → use-merge-defaultValues.d.ts} +0 -0
  41. /package/dist/lib/components/page-layout/src/hook/{use-page-data-hook.d.ts → use-page-data.d.ts} +0 -0
  42. /package/dist/lib/components/page-layout/src/hook/{use-ref-instance-hook.d.ts → use-ref-instance.d.ts} +0 -0
  43. /package/dist/lib/components/page-layout/src/hook/{use-remote-config-hook.d.ts → use-remote-config.d.ts} +0 -0
  44. /package/dist/lib/components/page-layout/src/hook/{use-uid-hook.d.ts → use-uid.d.ts} +0 -0
@@ -1,4 +1,5 @@
1
- import type { LayoutConfig } from '../edit-page-layout';
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-hook';
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<{
@@ -22,7 +23,180 @@ declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOp
22
23
  pageData: Ref<RecordString>;
23
24
  loading: Ref<boolean>;
24
25
  layoutLoading: Ref<boolean>;
26
+ isFinishConfig: Ref<boolean>;
25
27
  customLoading: Readonly<Ref<boolean>>;
28
+ currentRow: CurrentRow;
29
+ fileVisible: Ref<boolean>;
30
+ fileProps: Ref<{
31
+ readonly data?: {
32
+ [x: string]: unknown;
33
+ businessType: string;
34
+ headId: string;
35
+ } | undefined;
36
+ readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
37
+ readonly visible?: boolean | undefined;
38
+ readonly currentRow?: {
39
+ [x: string]: unknown;
40
+ templateNumber: string;
41
+ templateVersion: number;
42
+ templateAccount: string;
43
+ busAccount: string;
44
+ elsAccount: string;
45
+ } | undefined;
46
+ readonly action?: string | undefined;
47
+ readonly accept?: string | undefined;
48
+ readonly dictCode?: string | undefined;
49
+ readonly userInfo?: {
50
+ [x: string]: unknown;
51
+ elsAccount: string;
52
+ subAccount: string;
53
+ serivceUrl: string;
54
+ } | undefined;
55
+ readonly role?: string | undefined;
56
+ readonly property?: string | undefined;
57
+ readonly defaultFileType?: string | undefined;
58
+ readonly requiredFileType?: boolean | undefined;
59
+ readonly defaultFileBelong?: string | undefined;
60
+ readonly limitSize?: number | undefined;
61
+ readonly acceptDictCode?: string | undefined;
62
+ readonly maxCount?: number | undefined;
63
+ readonly isOss?: boolean | undefined;
64
+ readonly isGridUpload?: boolean | undefined;
65
+ readonly itemNumberKey?: string | undefined;
66
+ readonly itemNumberLabel?: string | undefined;
67
+ readonly itemNumberValueProp?: string | undefined;
68
+ readonly itemNumberDefaultValue?: string | undefined;
69
+ readonly itemNumberSelectIndex?: boolean | undefined;
70
+ readonly disabledItemNumber?: boolean | undefined;
71
+ readonly itemInfo?: RecordString[] | undefined;
72
+ readonly fileTypeList?: {
73
+ [x: string]: unknown;
74
+ title: string;
75
+ value: string;
76
+ }[] | undefined;
77
+ readonly actionRoutePath?: string | undefined;
78
+ readonly sourceNumberType?: string | undefined;
79
+ readonly onConfirmBeforeUpload?: Function | undefined;
80
+ }>;
81
+ handleChangeFiles: (fileResult: RecordString[]) => void;
82
+ importVisible: Ref<boolean>;
83
+ importProps: Ref<{
84
+ button: {
85
+ title: string;
86
+ i18nKey?: string | undefined;
87
+ key: string | symbol;
88
+ args: PageButtonArgsFunctionType | {
89
+ [x: string]: unknown;
90
+ url: string;
91
+ };
92
+ authorityCode?: string | undefined;
93
+ attrs?: RecordString | undefined;
94
+ icon?: {
95
+ type: string;
96
+ size: number;
97
+ color?: string | undefined;
98
+ } | undefined;
99
+ emit?: boolean | undefined;
100
+ emitKey?: string | undefined;
101
+ showMessage?: boolean | undefined;
102
+ checkBefore?: boolean | undefined;
103
+ confirm?: {
104
+ title: string;
105
+ content: string;
106
+ } | undefined;
107
+ dropdown?: boolean | undefined;
108
+ isExistFrozenSource?: boolean | undefined;
109
+ isExistFrozenSourceUrl?: string | undefined;
110
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
111
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
112
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
113
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
114
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
115
+ };
116
+ isEditPage: boolean;
117
+ token: string;
118
+ }>;
119
+ auditModalVisible: Ref<boolean>;
120
+ approvalModalVisible: Ref<boolean>;
121
+ nodeHistoryModalVisible: Ref<boolean>;
122
+ auditModalProps: Ref<{
123
+ width?: string | undefined;
124
+ form?: {
125
+ [x: string]: unknown;
126
+ type: string;
127
+ label: string;
128
+ fieldName: string;
129
+ required?: string | undefined;
130
+ attrs?: ObjectMap | undefined;
131
+ extends?: ObjectMap | undefined;
132
+ dictCode?: string | undefined;
133
+ options?: any[] | undefined;
134
+ click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
135
+ }[] | undefined;
136
+ title?: string | undefined;
137
+ 'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
138
+ visible?: boolean | undefined;
139
+ currentRow?: any;
140
+ businessType?: string | undefined;
141
+ token?: string | undefined;
142
+ busAccount?: string | undefined;
143
+ taskAction?: string | undefined;
144
+ needFlow?: string | undefined;
145
+ flowIframeUrl?: string | undefined;
146
+ customParams?: Record<string, any> | undefined;
147
+ }>;
148
+ auditModalConfirm: Ref<any>;
149
+ auditModalCancel: Ref<any>;
150
+ flowVisible: Ref<boolean>;
151
+ flowProps: Ref<{
152
+ button?: {
153
+ title: string;
154
+ i18nKey?: string | undefined;
155
+ key: string | symbol;
156
+ args: PageButtonArgsFunctionType | {
157
+ [x: string]: unknown;
158
+ url: string;
159
+ };
160
+ authorityCode?: string | undefined;
161
+ attrs?: RecordString | undefined;
162
+ icon?: {
163
+ type: string;
164
+ size: number;
165
+ color?: string | undefined;
166
+ } | undefined;
167
+ emit?: boolean | undefined;
168
+ emitKey?: string | undefined;
169
+ showMessage?: boolean | undefined;
170
+ checkBefore?: boolean | undefined;
171
+ confirm?: {
172
+ title: string;
173
+ content: string;
174
+ } | undefined;
175
+ dropdown?: boolean | undefined;
176
+ isExistFrozenSource?: boolean | undefined;
177
+ isExistFrozenSourceUrl?: string | undefined;
178
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
179
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
180
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
181
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
182
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
183
+ } | undefined;
184
+ width?: string | undefined;
185
+ title?: string | undefined;
186
+ onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
187
+ 'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
188
+ visible?: boolean | undefined;
189
+ currentRow?: any;
190
+ token?: string | undefined;
191
+ flowId?: string | undefined;
192
+ isDesign?: boolean | undefined;
193
+ workFlowType?: string | undefined;
194
+ }>;
195
+ afterSignModalVisible: Ref<boolean>;
196
+ handleAfterSignModal: () => void;
197
+ layoutExtraInfo: {
198
+ token: string;
199
+ };
26
200
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
27
201
  [x: string]: unknown;
28
202
  }>>>>, {
@@ -1,14 +1,62 @@
1
1
  import type { ObjectMap } from '../../../list-page-layout';
2
2
  import type { Ref } from 'vue';
3
- import type { RecordString, PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, PageButton, CurrentRow } from '../../../edit-page-layout';
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<{
@@ -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
+ };
@@ -0,0 +1,42 @@
1
+ import type { Ref } from 'vue';
2
+ import type { PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString, LayoutConfig, PageButton } from '../../../edit-page-layout';
3
+ export default function useExcelImport(pageData: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>, defaultValues: Ref<RecordString>): {
4
+ importVisible: Ref<boolean>;
5
+ importProps: Ref<{
6
+ button: {
7
+ title: string;
8
+ i18nKey?: string | undefined;
9
+ key: string | symbol;
10
+ args: PageButtonArgsFunctionType | {
11
+ [x: string]: unknown;
12
+ url: string;
13
+ };
14
+ authorityCode?: string | undefined;
15
+ attrs?: RecordString | undefined;
16
+ icon?: {
17
+ type: string;
18
+ size: number;
19
+ color?: string | undefined;
20
+ } | undefined;
21
+ emit?: boolean | undefined;
22
+ emitKey?: string | undefined;
23
+ showMessage?: boolean | undefined;
24
+ checkBefore?: boolean | undefined;
25
+ confirm?: {
26
+ title: string;
27
+ content: string;
28
+ } | undefined;
29
+ dropdown?: boolean | undefined;
30
+ isExistFrozenSource?: boolean | undefined;
31
+ isExistFrozenSourceUrl?: string | undefined;
32
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
33
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
34
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
35
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
36
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
37
+ };
38
+ isEditPage: boolean;
39
+ token: string;
40
+ }>;
41
+ handleOpenImportModal: (btn: PageButton) => void;
42
+ };
@@ -0,0 +1,64 @@
1
+ import type { Ref, SetupContext } from 'vue';
2
+ import type { ColumnItemWithExtend, VxeItemFileUpload } from '../../../upload-file';
3
+ import type { PageButtonDownLoad, PageButtonDeleteFileRow, PageButtonUploadType, RecordString, LayoutConfig } from '../../../edit-page-layout';
4
+ export default function useFileUpload(ctx: SetupContext, pageData: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>, defaultValues: Ref<RecordString>): {
5
+ btnObj: Ref<PageButtonUploadType | undefined>;
6
+ itemConfigObj: Ref<ColumnItemWithExtend | undefined>;
7
+ fileVisible: Ref<boolean>;
8
+ fileProps: Ref<{
9
+ readonly data?: {
10
+ [x: string]: unknown;
11
+ businessType: string;
12
+ headId: string;
13
+ } | undefined;
14
+ readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
15
+ readonly visible?: boolean | undefined;
16
+ readonly currentRow?: {
17
+ [x: string]: unknown;
18
+ templateNumber: string;
19
+ templateVersion: number;
20
+ templateAccount: string;
21
+ busAccount: string;
22
+ elsAccount: string;
23
+ } | undefined;
24
+ readonly action?: string | undefined;
25
+ readonly accept?: string | undefined;
26
+ readonly dictCode?: string | undefined;
27
+ readonly userInfo?: {
28
+ [x: string]: unknown;
29
+ elsAccount: string;
30
+ subAccount: string;
31
+ serivceUrl: string;
32
+ } | undefined;
33
+ readonly role?: string | undefined;
34
+ readonly property?: string | undefined;
35
+ readonly defaultFileType?: string | undefined;
36
+ readonly requiredFileType?: boolean | undefined;
37
+ readonly defaultFileBelong?: string | undefined;
38
+ readonly limitSize?: number | undefined;
39
+ readonly acceptDictCode?: string | undefined;
40
+ readonly maxCount?: number | undefined;
41
+ readonly isOss?: boolean | undefined;
42
+ readonly isGridUpload?: boolean | undefined;
43
+ readonly itemNumberKey?: string | undefined;
44
+ readonly itemNumberLabel?: string | undefined;
45
+ readonly itemNumberValueProp?: string | undefined;
46
+ readonly itemNumberDefaultValue?: string | undefined;
47
+ readonly itemNumberSelectIndex?: boolean | undefined;
48
+ readonly disabledItemNumber?: boolean | undefined;
49
+ readonly itemInfo?: RecordString[] | undefined;
50
+ readonly fileTypeList?: {
51
+ [x: string]: unknown;
52
+ title: string;
53
+ value: string;
54
+ }[] | undefined;
55
+ readonly actionRoutePath?: string | undefined;
56
+ readonly sourceNumberType?: string | undefined;
57
+ readonly onConfirmBeforeUpload?: Function | undefined;
58
+ }>;
59
+ handleDownLoadZip: (btn: PageButtonDownLoad) => void;
60
+ handleDeleteFileRows: (btn: PageButtonDeleteFileRow) => void;
61
+ handleOpenFileUpload: (btn: PageButtonUploadType) => void;
62
+ handleOpenFileUploadItem: (itemConfig: VxeItemFileUpload) => void;
63
+ handleChangeFiles: (fileResult: RecordString[]) => void;
64
+ };
@@ -0,0 +1,26 @@
1
+ import type { Ref, SetupContext } from 'vue';
2
+ import type { RecordString, KeydownEventParams, HeaderCellClickEventParams, HeaderCellDblclickEventParams, HeaderCellMenuEventParams, CellClickEventParams, CellDblclickEventParams, CellMenuEventParams, FooterCellClickEventParams, FooterCellDblclickEventParams, FooterCellMenuEventParams, RadioChangeEventParams, CheckboxChangeEventParams, CheckboxAllEventParams, ScrollEventParams, ZoomEventParams, CustomEventParams, CellAreaCutParams, CellAreaCopyParams, CellAreaPasteParams } from '../../../edit-page-layout';
3
+ export default function useGridEvents(ctx: SetupContext, pageData: Ref<RecordString>): {
4
+ cacheRows: Ref<RecordString[]>;
5
+ cacheGroupCode: Ref<string>;
6
+ cacheEventParams: Ref<CellClickEventParams | null | undefined>;
7
+ handleGridKeydown: (params: KeydownEventParams) => void;
8
+ handleGridHeaderCellClick: (params: HeaderCellClickEventParams) => void;
9
+ handleGridHeaderCellDblclick: (params: HeaderCellDblclickEventParams) => void;
10
+ handleGridHeaderCellMenu: (params: HeaderCellMenuEventParams) => void;
11
+ handleGridCellClick: (params: CellClickEventParams) => void;
12
+ handleGridCellDblclick: (params: CellDblclickEventParams) => void;
13
+ handleGridCellMenu: (params: CellMenuEventParams) => void;
14
+ handleGridFooterCellClick: (params: FooterCellClickEventParams) => void;
15
+ handleGridFooterCellDblclick: (params: FooterCellDblclickEventParams) => void;
16
+ handleGridFooterCellMenu: (params: FooterCellMenuEventParams) => void;
17
+ handleGridRadioChange: (params: RadioChangeEventParams) => void;
18
+ handleGridCheckboxChange: (params: CheckboxChangeEventParams) => void;
19
+ handleGridCheckboxAll: (params: CheckboxAllEventParams) => void;
20
+ handleGridScroll: (params: ScrollEventParams) => void;
21
+ handleGridZoom: (params: ZoomEventParams) => void;
22
+ handleGridCustom: (params: CustomEventParams) => void;
23
+ handleGridCellAreaCopy: (params: CellAreaCopyParams) => void;
24
+ handleGridCellAreaCut: (params: CellAreaCutParams) => void;
25
+ handleGridCellAreaPaste: (params: CellAreaPasteParams) => void;
26
+ };
@@ -1,7 +1,39 @@
1
1
  import type { Ref } from 'vue';
2
- import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageButton, ValidateResult } from '../../../edit-page-layout';
2
+ import type { PageButtonArgsFunctionType, PageButtonPayload, UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageButton, ValidateResult } from '../../../edit-page-layout';
3
3
  export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
4
4
  localUid: Ref<number>;
5
+ cacheButton: Ref<{
6
+ title: string;
7
+ i18nKey?: string | undefined;
8
+ key: string | symbol;
9
+ args: PageButtonArgsFunctionType | {
10
+ [x: string]: unknown;
11
+ url: string;
12
+ };
13
+ authorityCode?: string | undefined;
14
+ attrs?: RecordString | undefined;
15
+ icon?: {
16
+ type: string;
17
+ size: number;
18
+ color?: string | undefined;
19
+ } | undefined;
20
+ emit?: boolean | undefined;
21
+ emitKey?: string | undefined;
22
+ showMessage?: boolean | undefined;
23
+ checkBefore?: boolean | undefined;
24
+ confirm?: {
25
+ title: string;
26
+ content: string;
27
+ } | undefined;
28
+ dropdown?: boolean | undefined;
29
+ isExistFrozenSource?: boolean | undefined;
30
+ isExistFrozenSourceUrl?: string | undefined;
31
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
32
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
33
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
34
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
35
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
36
+ }>;
5
37
  customLoading: Readonly<Ref<boolean>>;
6
38
  normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
7
39
  handleResetValidateStatus: () => void;
@@ -1,5 +1,6 @@
1
+ import type { ObjectMap } from '../../list-page-layout';
1
2
  import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
2
- import type { LayoutConfig, RecordString } from '../../edit-page-layout';
3
+ import type { LayoutConfig, CurrentRow, PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString } from '../../edit-page-layout';
3
4
  declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
4
5
  [x: string]: unknown;
5
6
  }>>, {
@@ -11,7 +12,180 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
11
12
  pageData: Ref<RecordString>;
12
13
  loading: Ref<boolean>;
13
14
  layoutLoading: Ref<boolean>;
15
+ isFinishConfig: Ref<boolean>;
14
16
  customLoading: Readonly<Ref<boolean>>;
17
+ currentRow: CurrentRow;
18
+ fileVisible: Ref<boolean>;
19
+ fileProps: Ref<{
20
+ readonly data?: {
21
+ [x: string]: unknown;
22
+ businessType: string;
23
+ headId: string;
24
+ } | undefined;
25
+ readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
26
+ readonly visible?: boolean | undefined;
27
+ readonly currentRow?: {
28
+ [x: string]: unknown;
29
+ templateNumber: string;
30
+ templateVersion: number;
31
+ templateAccount: string;
32
+ busAccount: string;
33
+ elsAccount: string;
34
+ } | undefined;
35
+ readonly action?: string | undefined;
36
+ readonly accept?: string | undefined;
37
+ readonly dictCode?: string | undefined;
38
+ readonly userInfo?: {
39
+ [x: string]: unknown;
40
+ elsAccount: string;
41
+ subAccount: string;
42
+ serivceUrl: string;
43
+ } | undefined;
44
+ readonly role?: string | undefined;
45
+ readonly property?: string | undefined;
46
+ readonly defaultFileType?: string | undefined;
47
+ readonly requiredFileType?: boolean | undefined;
48
+ readonly defaultFileBelong?: string | undefined;
49
+ readonly limitSize?: number | undefined;
50
+ readonly acceptDictCode?: string | undefined;
51
+ readonly maxCount?: number | undefined;
52
+ readonly isOss?: boolean | undefined;
53
+ readonly isGridUpload?: boolean | undefined;
54
+ readonly itemNumberKey?: string | undefined;
55
+ readonly itemNumberLabel?: string | undefined;
56
+ readonly itemNumberValueProp?: string | undefined;
57
+ readonly itemNumberDefaultValue?: string | undefined;
58
+ readonly itemNumberSelectIndex?: boolean | undefined;
59
+ readonly disabledItemNumber?: boolean | undefined;
60
+ readonly itemInfo?: RecordString[] | undefined;
61
+ readonly fileTypeList?: {
62
+ [x: string]: unknown;
63
+ title: string;
64
+ value: string;
65
+ }[] | undefined;
66
+ readonly actionRoutePath?: string | undefined;
67
+ readonly sourceNumberType?: string | undefined;
68
+ readonly onConfirmBeforeUpload?: Function | undefined;
69
+ }>;
70
+ handleChangeFiles: (fileResult: RecordString[]) => void;
71
+ importVisible: Ref<boolean>;
72
+ importProps: Ref<{
73
+ button: {
74
+ title: string;
75
+ i18nKey?: string | undefined;
76
+ key: string | symbol;
77
+ args: PageButtonArgsFunctionType | {
78
+ [x: string]: unknown;
79
+ url: string;
80
+ };
81
+ authorityCode?: string | undefined;
82
+ attrs?: RecordString | undefined;
83
+ icon?: {
84
+ type: string;
85
+ size: number;
86
+ color?: string | undefined;
87
+ } | undefined;
88
+ emit?: boolean | undefined;
89
+ emitKey?: string | undefined;
90
+ showMessage?: boolean | undefined;
91
+ checkBefore?: boolean | undefined;
92
+ confirm?: {
93
+ title: string;
94
+ content: string;
95
+ } | undefined;
96
+ dropdown?: boolean | undefined;
97
+ isExistFrozenSource?: boolean | undefined;
98
+ isExistFrozenSourceUrl?: string | undefined;
99
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
100
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
101
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
102
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
103
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
104
+ };
105
+ isEditPage: boolean;
106
+ token: string;
107
+ }>;
108
+ auditModalVisible: Ref<boolean>;
109
+ approvalModalVisible: Ref<boolean>;
110
+ nodeHistoryModalVisible: Ref<boolean>;
111
+ auditModalProps: Ref<{
112
+ width?: string | undefined;
113
+ form?: {
114
+ [x: string]: unknown;
115
+ type: string;
116
+ label: string;
117
+ fieldName: string;
118
+ required?: string | undefined;
119
+ attrs?: ObjectMap | undefined;
120
+ extends?: ObjectMap | undefined;
121
+ dictCode?: string | undefined;
122
+ options?: any[] | undefined;
123
+ click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
124
+ }[] | undefined;
125
+ title?: string | undefined;
126
+ 'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
127
+ visible?: boolean | undefined;
128
+ currentRow?: any;
129
+ businessType?: string | undefined;
130
+ token?: string | undefined;
131
+ busAccount?: string | undefined;
132
+ taskAction?: string | undefined;
133
+ needFlow?: string | undefined;
134
+ flowIframeUrl?: string | undefined;
135
+ customParams?: Record<string, any> | undefined;
136
+ }>;
137
+ auditModalConfirm: Ref<any>;
138
+ auditModalCancel: Ref<any>;
139
+ flowVisible: Ref<boolean>;
140
+ flowProps: Ref<{
141
+ button?: {
142
+ title: string;
143
+ i18nKey?: string | undefined;
144
+ key: string | symbol;
145
+ args: PageButtonArgsFunctionType | {
146
+ [x: string]: unknown;
147
+ url: string;
148
+ };
149
+ authorityCode?: string | undefined;
150
+ attrs?: RecordString | undefined;
151
+ icon?: {
152
+ type: string;
153
+ size: number;
154
+ color?: string | undefined;
155
+ } | undefined;
156
+ emit?: boolean | undefined;
157
+ emitKey?: string | undefined;
158
+ showMessage?: boolean | undefined;
159
+ checkBefore?: boolean | undefined;
160
+ confirm?: {
161
+ title: string;
162
+ content: string;
163
+ } | undefined;
164
+ dropdown?: boolean | undefined;
165
+ isExistFrozenSource?: boolean | undefined;
166
+ isExistFrozenSourceUrl?: string | undefined;
167
+ isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
168
+ disabled?: ((pageData: RecordString) => boolean) | undefined;
169
+ handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
170
+ handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
171
+ callback?: ((payload: PageButtonPayload) => void) | undefined;
172
+ } | undefined;
173
+ width?: string | undefined;
174
+ title?: string | undefined;
175
+ onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
176
+ 'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
177
+ visible?: boolean | undefined;
178
+ currentRow?: any;
179
+ token?: string | undefined;
180
+ flowId?: string | undefined;
181
+ isDesign?: boolean | undefined;
182
+ workFlowType?: string | undefined;
183
+ }>;
184
+ afterSignModalVisible: Ref<boolean>;
185
+ handleAfterSignModal: () => void;
186
+ layoutExtraInfo: {
187
+ token: string;
188
+ };
15
189
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
16
190
  [x: string]: unknown;
17
191
  }>>>>, {
@@ -38,16 +38,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
38
38
  classes: ComputedRef<{
39
39
  [key: string]: string | boolean;
40
40
  }>;
41
- realValue: Ref<string | string[] | undefined>;
41
+ realValue: Ref<string | string[]>;
42
42
  mode: ComputedRef<string>;
43
43
  options: Ref<{
44
- [x: string]: string;
44
+ label: string;
45
45
  title: string;
46
46
  value: string;
47
47
  id: string;
48
48
  textI18nKey: string;
49
49
  children?: unknown[] | undefined;
50
- label: string;
51
50
  }[]>;
52
51
  dictCode: Ref<string>;
53
52
  onChange: (value: string | string[], options: SelectOption | SelectOption[]) => void;