@qqt-product/ui 0.0.16 → 0.0.17
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 +54568 -57030
- package/dist/index.umd.js +138 -200
- package/dist/lib/components/audit-modal/index.d.ts +13 -2
- package/dist/lib/components/audit-modal/src/audit-modal-type.d.ts +4 -0
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +13 -2
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +9 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +10 -1
- package/dist/lib/components/audit-modal/src/hook/list-slot-hook.d.ts +1 -1
- package/dist/lib/components/audit-modal/src/hook/use-field-select-modal-hook.d.ts +2 -2
- package/dist/lib/components/cascader/index.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +2 -1
- package/dist/lib/components/detail-form/index.d.ts +7 -5
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +8 -6
- package/dist/lib/components/detail-grid/index.d.ts +11 -2
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +11 -2
- package/dist/lib/components/detail-page-layout/index.d.ts +24 -6
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +23 -5
- package/dist/lib/components/edit-form/index.d.ts +10 -10
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +11 -11
- package/dist/lib/components/edit-form/src/hook/use-callback-hook.d.ts +7 -6
- package/dist/lib/components/edit-grid/index.d.ts +12 -2
- 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 +12 -2
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +2 -2
- package/dist/lib/components/edit-page-layout/index.d.ts +23 -5
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +47 -35
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +23 -5
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
- package/dist/lib/components/empty/index.d.ts +103 -0
- package/dist/lib/components/field-select-modal/index.d.ts +5 -0
- package/dist/lib/components/field-select-modal/src/field-select-modal.vue.d.ts +5 -0
- package/dist/lib/components/index.d.ts +4 -1
- package/dist/lib/components/item-wrap/index.d.ts +2 -2
- package/dist/lib/components/item-wrap/src/item-wrap-types.d.ts +1 -1
- package/dist/lib/components/item-wrap/src/item-wrap.vue.d.ts +2 -2
- package/dist/lib/components/ladder-price/index.d.ts +6 -2
- package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +7 -3
- package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +3 -1
- package/dist/lib/components/ladder-price/src/hook/use-type-hook.d.ts +9 -0
- package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +2 -2
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +6 -2
- package/dist/lib/components/layout-buttons/index.d.ts +4 -2
- package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +4 -2
- package/dist/lib/components/layout-pattern/index.d.ts +2 -2
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +17 -13
- package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +3 -2
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/index.d.ts +9 -1
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +15 -3
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +4 -2
- package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/hooks/use-list-params-hook.d.ts +7 -0
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +9 -1
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +9 -2
- package/dist/lib/components/menu/index.d.ts +84 -0
- package/dist/lib/components/menu/src/index.d.ts +80 -0
- package/dist/lib/components/menu/src/menu-types.d.ts +47 -0
- package/dist/lib/components/menu/src/use-menu.d.ts +2 -0
- package/dist/lib/components/page-layout/index.d.ts +4 -4
- package/dist/lib/components/page-layout/src/constant/buttons.d.ts +6 -6
- package/dist/lib/components/page-layout/src/hook/use-merge-defaultValues-hook.d.ts +3 -3
- package/dist/lib/components/page-layout/src/hook/use-page-data-hook.d.ts +2 -2
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +5 -3
- package/dist/lib/components/page-layout/src/hook/use-ref-instance-hook.d.ts +3 -3
- package/dist/lib/components/page-layout/src/hook/use-remote-config-hook.d.ts +2 -2
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +4 -4
- package/dist/lib/components/page-layout/src/token.d.ts +4 -4
- package/dist/lib/components/relation-graph/src/relation-graph-types.d.ts +2 -2
- package/dist/lib/components/remote-select/index.d.ts +5 -5
- package/dist/lib/components/remote-select/src/remote-select-types.d.ts +6 -6
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +5 -5
- package/dist/lib/components/rich-editor-model/index.d.ts +52 -0
- package/dist/lib/components/rich-editor-model/src/rich-editor-model-type.d.ts +14 -0
- package/dist/lib/components/rich-editor-model/src/rich-editor-model.vue.d.ts +49 -0
- package/dist/lib/components/select-modal/index.d.ts +16 -7
- package/dist/lib/components/select-modal/src/select-modal-types.d.ts +6 -6
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +16 -7
- package/dist/lib/components/tree-select/index.d.ts +4 -4
- package/dist/lib/components/tree-select/src/tree-select-types.d.ts +2 -2
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +4 -4
- package/dist/lib/components/upload-file/index.d.ts +5 -5
- package/dist/lib/components/upload-file/src/hook/use-file-column-hook.d.ts +2 -32
- package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +2 -2
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +6 -6
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +5 -5
- package/dist/lib/components/upload-file-vxe/index.d.ts +8 -6
- package/dist/lib/components/upload-file-vxe/src/upload-file-vxe-types.d.ts +2 -2
- package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +8 -6
- package/dist/lib/components/upload-image/index.d.ts +10 -0
- package/dist/lib/components/upload-image/src/upload-image-type.d.ts +4 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +10 -0
- package/dist/lib/utils/event.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/lib/components/edit-grid/src/components/empty/index.d.ts +0 -8
- package/dist/vite.svg +0 -1
|
@@ -21,6 +21,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
21
21
|
beforeHandleData: {
|
|
22
22
|
type: PropType<(column: GridColumn[]) => void>;
|
|
23
23
|
};
|
|
24
|
+
afterHandleData: {
|
|
25
|
+
type: PropType<(tableData: ObjectMap[]) => void>;
|
|
26
|
+
};
|
|
24
27
|
localColumnGroup: {
|
|
25
28
|
type: PropType<(column: GridColumn[]) => GridColumn[]>;
|
|
26
29
|
};
|
|
@@ -82,7 +85,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
82
85
|
loading: boolean;
|
|
83
86
|
extraListConfig: ObjectMap;
|
|
84
87
|
pageData: {
|
|
85
|
-
[x: string]:
|
|
88
|
+
[x: string]: any;
|
|
86
89
|
onlyShowNav?: boolean | undefined;
|
|
87
90
|
isAggregate?: "0" | "1" | undefined;
|
|
88
91
|
isUseLocalColumns?: boolean | undefined;
|
|
@@ -236,8 +239,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
236
239
|
iconNextPage?: string | undefined;
|
|
237
240
|
iconJumpMore?: string | undefined;
|
|
238
241
|
} | undefined;
|
|
242
|
+
cacheParams?: ObjectMap | undefined;
|
|
239
243
|
};
|
|
240
244
|
beforeHandleData?: ((column: GridColumn[]) => void) | undefined;
|
|
245
|
+
afterHandleData?: ((tableData: ObjectMap[]) => void) | undefined;
|
|
241
246
|
localColumnGroup?: ((column: GridColumn[]) => GridColumn[]) | undefined;
|
|
242
247
|
};
|
|
243
248
|
};
|
|
@@ -279,6 +284,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
279
284
|
beforeHandleData: {
|
|
280
285
|
type: PropType<(column: GridColumn[]) => void>;
|
|
281
286
|
};
|
|
287
|
+
afterHandleData: {
|
|
288
|
+
type: PropType<(tableData: ObjectMap[]) => void>;
|
|
289
|
+
};
|
|
282
290
|
localColumnGroup: {
|
|
283
291
|
type: PropType<(column: GridColumn[]) => GridColumn[]>;
|
|
284
292
|
};
|
|
@@ -119,7 +119,8 @@ export interface PageData {
|
|
|
119
119
|
change: (event: Event, value?: string | number, options?: ListMergeDataItem[]) => void;
|
|
120
120
|
};
|
|
121
121
|
pagerConfig?: VxeGridPropTypes.PagerConfig;
|
|
122
|
-
|
|
122
|
+
cacheParams?: ObjectMap;
|
|
123
|
+
[key: string]: unknown | any;
|
|
123
124
|
}
|
|
124
125
|
export interface ListMergeDataItem {
|
|
125
126
|
title: string;
|
|
@@ -161,6 +162,9 @@ export declare const listPageLayout: {
|
|
|
161
162
|
beforeHandleData: {
|
|
162
163
|
type: PropType<(column: GridColumn[]) => void>;
|
|
163
164
|
};
|
|
165
|
+
afterHandleData: {
|
|
166
|
+
type: PropType<(tableData: ObjectMap[]) => void>;
|
|
167
|
+
};
|
|
164
168
|
localColumnGroup: {
|
|
165
169
|
type: PropType<(column: GridColumn[]) => GridColumn[]>;
|
|
166
170
|
};
|
|
@@ -192,6 +196,9 @@ export declare const listContent: {
|
|
|
192
196
|
type: PropType<ApiUrls>;
|
|
193
197
|
default: () => {};
|
|
194
198
|
};
|
|
199
|
+
afterHandleData: {
|
|
200
|
+
type: PropType<(column: GridColumn[]) => void>;
|
|
201
|
+
};
|
|
195
202
|
filterList: never[];
|
|
196
203
|
};
|
|
197
204
|
export interface ButtonConfig {
|
|
@@ -324,7 +331,7 @@ export interface QueryParamsItem {
|
|
|
324
331
|
queryItemId?: string | number;
|
|
325
332
|
extendLink?: string;
|
|
326
333
|
extend?: {
|
|
327
|
-
bindFunction?: (args:
|
|
334
|
+
bindFunction?: <T>(discard: null, args: T) => void;
|
|
328
335
|
[key: string]: unknown;
|
|
329
336
|
};
|
|
330
337
|
[key: string]: unknown;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { MenuTheme, MenuMode } from 'ant-design-vue';
|
|
2
|
+
import type { RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
|
|
3
|
+
import type { MenuTreeNode } from './src/menu-types';
|
|
4
|
+
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
5
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
6
|
+
import QMenu from './src/index';
|
|
7
|
+
export * from './src/menu-types';
|
|
8
|
+
export { QMenu };
|
|
9
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
10
|
+
readonly menus: {
|
|
11
|
+
readonly type: PropType<MenuTreeNode[]>;
|
|
12
|
+
readonly default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
readonly _route: {
|
|
15
|
+
readonly type: PropType<RouteLocationNormalizedLoaded>;
|
|
16
|
+
readonly default: () => {
|
|
17
|
+
path: string;
|
|
18
|
+
matched: never[];
|
|
19
|
+
};
|
|
20
|
+
readonly required: true;
|
|
21
|
+
};
|
|
22
|
+
readonly _query: {
|
|
23
|
+
readonly type: PropType<LocationQuery>;
|
|
24
|
+
readonly default: () => {};
|
|
25
|
+
};
|
|
26
|
+
readonly theme: {
|
|
27
|
+
readonly type: PropType<MenuTheme>;
|
|
28
|
+
readonly default: "light";
|
|
29
|
+
};
|
|
30
|
+
readonly mode: {
|
|
31
|
+
readonly type: PropType<MenuMode>;
|
|
32
|
+
readonly default: "inline";
|
|
33
|
+
};
|
|
34
|
+
readonly inlineCollapsed: {
|
|
35
|
+
readonly type: PropType<boolean>;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
readonly 'onUpdate:inlineCollapsed': {
|
|
39
|
+
type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
|
|
40
|
+
default: unknown;
|
|
41
|
+
};
|
|
42
|
+
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
43
|
+
readonly menus: {
|
|
44
|
+
readonly type: PropType<MenuTreeNode[]>;
|
|
45
|
+
readonly default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
readonly _route: {
|
|
48
|
+
readonly type: PropType<RouteLocationNormalizedLoaded>;
|
|
49
|
+
readonly default: () => {
|
|
50
|
+
path: string;
|
|
51
|
+
matched: never[];
|
|
52
|
+
};
|
|
53
|
+
readonly required: true;
|
|
54
|
+
};
|
|
55
|
+
readonly _query: {
|
|
56
|
+
readonly type: PropType<LocationQuery>;
|
|
57
|
+
readonly default: () => {};
|
|
58
|
+
};
|
|
59
|
+
readonly theme: {
|
|
60
|
+
readonly type: PropType<MenuTheme>;
|
|
61
|
+
readonly default: "light";
|
|
62
|
+
};
|
|
63
|
+
readonly mode: {
|
|
64
|
+
readonly type: PropType<MenuMode>;
|
|
65
|
+
readonly default: "inline";
|
|
66
|
+
};
|
|
67
|
+
readonly inlineCollapsed: {
|
|
68
|
+
readonly type: PropType<boolean>;
|
|
69
|
+
readonly default: false;
|
|
70
|
+
};
|
|
71
|
+
readonly 'onUpdate:inlineCollapsed': {
|
|
72
|
+
type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
|
|
73
|
+
default: unknown;
|
|
74
|
+
};
|
|
75
|
+
}>>, {
|
|
76
|
+
readonly mode: MenuMode;
|
|
77
|
+
readonly theme: MenuTheme;
|
|
78
|
+
readonly menus: MenuTreeNode[];
|
|
79
|
+
readonly _route: RouteLocationNormalizedLoaded;
|
|
80
|
+
readonly _query: LocationQuery;
|
|
81
|
+
readonly inlineCollapsed: boolean;
|
|
82
|
+
readonly 'onUpdate:inlineCollapsed': ((flag: boolean) => void) | ((flag: boolean) => void)[];
|
|
83
|
+
}, {}>>;
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { MenuTheme, MenuMode } from 'ant-design-vue';
|
|
2
|
+
import type { RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
|
|
3
|
+
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import type { MenuTreeNode } from './menu-types';
|
|
5
|
+
declare const _default: DefineComponent<{
|
|
6
|
+
readonly menus: {
|
|
7
|
+
readonly type: PropType<MenuTreeNode[]>;
|
|
8
|
+
readonly default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
readonly _route: {
|
|
11
|
+
readonly type: PropType<RouteLocationNormalizedLoaded>;
|
|
12
|
+
readonly default: () => {
|
|
13
|
+
path: string;
|
|
14
|
+
matched: never[];
|
|
15
|
+
};
|
|
16
|
+
readonly required: true;
|
|
17
|
+
};
|
|
18
|
+
readonly _query: {
|
|
19
|
+
readonly type: PropType<LocationQuery>;
|
|
20
|
+
readonly default: () => {};
|
|
21
|
+
};
|
|
22
|
+
readonly theme: {
|
|
23
|
+
readonly type: PropType<MenuTheme>;
|
|
24
|
+
readonly default: "light";
|
|
25
|
+
};
|
|
26
|
+
readonly mode: {
|
|
27
|
+
readonly type: PropType<MenuMode>;
|
|
28
|
+
readonly default: "inline";
|
|
29
|
+
};
|
|
30
|
+
readonly inlineCollapsed: {
|
|
31
|
+
readonly type: PropType<boolean>;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly 'onUpdate:inlineCollapsed': {
|
|
35
|
+
type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
|
|
36
|
+
default: unknown;
|
|
37
|
+
};
|
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
39
|
+
readonly menus: {
|
|
40
|
+
readonly type: PropType<MenuTreeNode[]>;
|
|
41
|
+
readonly default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
readonly _route: {
|
|
44
|
+
readonly type: PropType<RouteLocationNormalizedLoaded>;
|
|
45
|
+
readonly default: () => {
|
|
46
|
+
path: string;
|
|
47
|
+
matched: never[];
|
|
48
|
+
};
|
|
49
|
+
readonly required: true;
|
|
50
|
+
};
|
|
51
|
+
readonly _query: {
|
|
52
|
+
readonly type: PropType<LocationQuery>;
|
|
53
|
+
readonly default: () => {};
|
|
54
|
+
};
|
|
55
|
+
readonly theme: {
|
|
56
|
+
readonly type: PropType<MenuTheme>;
|
|
57
|
+
readonly default: "light";
|
|
58
|
+
};
|
|
59
|
+
readonly mode: {
|
|
60
|
+
readonly type: PropType<MenuMode>;
|
|
61
|
+
readonly default: "inline";
|
|
62
|
+
};
|
|
63
|
+
readonly inlineCollapsed: {
|
|
64
|
+
readonly type: PropType<boolean>;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly 'onUpdate:inlineCollapsed': {
|
|
68
|
+
type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
|
|
69
|
+
default: unknown;
|
|
70
|
+
};
|
|
71
|
+
}>>, {
|
|
72
|
+
readonly mode: MenuMode;
|
|
73
|
+
readonly theme: MenuTheme;
|
|
74
|
+
readonly menus: MenuTreeNode[];
|
|
75
|
+
readonly _route: RouteLocationNormalizedLoaded;
|
|
76
|
+
readonly _query: LocationQuery;
|
|
77
|
+
readonly inlineCollapsed: boolean;
|
|
78
|
+
readonly 'onUpdate:inlineCollapsed': ((flag: boolean) => void) | ((flag: boolean) => void)[];
|
|
79
|
+
}, {}>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ComputedRef, PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { MenuMode, MenuTheme } from 'ant-design-vue';
|
|
3
|
+
import type { RouteRecordRaw, RouteLocationNormalizedLoaded, LocationQuery } from 'vue-router';
|
|
4
|
+
export type MenuTreeNode = Partial<RouteRecordRaw> & {
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
children?: null | MenuTreeNode[];
|
|
7
|
+
};
|
|
8
|
+
export declare const menuProps: {
|
|
9
|
+
readonly menus: {
|
|
10
|
+
readonly type: PropType<MenuTreeNode[]>;
|
|
11
|
+
readonly default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
readonly _route: {
|
|
14
|
+
readonly type: PropType<RouteLocationNormalizedLoaded>;
|
|
15
|
+
readonly default: () => {
|
|
16
|
+
path: string;
|
|
17
|
+
matched: never[];
|
|
18
|
+
};
|
|
19
|
+
readonly required: true;
|
|
20
|
+
};
|
|
21
|
+
readonly _query: {
|
|
22
|
+
readonly type: PropType<LocationQuery>;
|
|
23
|
+
readonly default: () => {};
|
|
24
|
+
};
|
|
25
|
+
readonly theme: {
|
|
26
|
+
readonly type: PropType<MenuTheme>;
|
|
27
|
+
readonly default: "light";
|
|
28
|
+
};
|
|
29
|
+
readonly mode: {
|
|
30
|
+
readonly type: PropType<MenuMode>;
|
|
31
|
+
readonly default: "inline";
|
|
32
|
+
};
|
|
33
|
+
readonly inlineCollapsed: {
|
|
34
|
+
readonly type: PropType<boolean>;
|
|
35
|
+
readonly default: false;
|
|
36
|
+
};
|
|
37
|
+
readonly 'onUpdate:inlineCollapsed': {
|
|
38
|
+
type: PropType<((flag: boolean) => void) | ((flag: boolean) => void)[]>;
|
|
39
|
+
default: unknown;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type MenuProps = ExtractPropTypes<typeof menuProps>;
|
|
43
|
+
export interface UseMenuReturnType {
|
|
44
|
+
classes: ComputedRef<{
|
|
45
|
+
[key: string]: string | boolean;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LayoutConfig } from '../edit-page-layout';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RecordString } from '../select-modal';
|
|
3
3
|
import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
|
|
4
4
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
5
|
import QPageLayout from './src/page-layout.vue';
|
|
@@ -17,12 +17,12 @@ declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOp
|
|
|
17
17
|
classes: ComputedRef<{
|
|
18
18
|
[key: string]: string | boolean;
|
|
19
19
|
}>;
|
|
20
|
-
defaultValues: Ref<
|
|
20
|
+
defaultValues: Ref<RecordString>;
|
|
21
21
|
layoutConfig: Ref<LayoutConfig>;
|
|
22
|
-
pageData: Ref<
|
|
22
|
+
pageData: Ref<RecordString>;
|
|
23
23
|
loading: Ref<boolean>;
|
|
24
24
|
layoutLoading: Ref<boolean>;
|
|
25
|
-
customLoading: Ref<boolean
|
|
25
|
+
customLoading: Readonly<Ref<boolean>>;
|
|
26
26
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
|
|
27
27
|
[x: string]: unknown;
|
|
28
28
|
}>>>>, {
|
|
@@ -16,21 +16,21 @@ export declare const BUTTON_CUSTOM: PageButton;
|
|
|
16
16
|
export declare const BUTTON_CUSTOM_PRIMARY: PageButton;
|
|
17
17
|
export declare const BUTTON_CUSTOM_DANGER: PageButton;
|
|
18
18
|
/**************************************审批按钮组 start************************************/
|
|
19
|
+
export declare const BUTTON_AUDIT_CHAT: PageButton;
|
|
19
20
|
export declare const BUTTON_AUDIT_AGREE: PageButton;
|
|
20
|
-
export declare const BUTTON_AUDIT_REFUSE: PageButton;
|
|
21
21
|
export declare const BUTTON_AUDIT_INFORMED: PageButton;
|
|
22
22
|
export declare const BUTTON_AUDIT_TRANSFER: PageButton;
|
|
23
23
|
export declare const BUTTON_AUDIT_BACK: PageButton;
|
|
24
24
|
export declare const BUTTON_AUDIT_TRANSACTION: PageButton;
|
|
25
|
-
export declare const BUTTON_AUDIT_INVALID: PageButton;
|
|
26
|
-
export declare const BUTTON_AUDIT_REVOCATION: PageButton;
|
|
27
|
-
export declare const BUTTON_AUDIT_REVOCATION_PRE_SIGN: PageButton;
|
|
28
25
|
export declare const BUTTON_AUDIT_FLOW_IMAGE: PageButton;
|
|
29
|
-
export declare const
|
|
26
|
+
export declare const BUTTON_AUDIT_INVALID: PageButton;
|
|
30
27
|
export declare const BUTTON_AUDIT_SIGN_NODE: PageButton;
|
|
31
28
|
export declare const BUTTON_AUDIT_PRE_SIGN: PageButton;
|
|
32
29
|
export declare const BUTTON_AUDIT_AFTER_SIGN: PageButton;
|
|
30
|
+
export declare const BUTTON_AUDIT_APPROVAL_COMMENT: PageButton;
|
|
33
31
|
export declare const BUTTON_AUDIT_PRINT: PageButton;
|
|
34
32
|
export declare const BUTTON_AUDIT_ADD_NODE_HISTORY: PageButton;
|
|
35
|
-
export declare const
|
|
33
|
+
export declare const BUTTON_AUDIT_REFUSE: PageButton;
|
|
34
|
+
export declare const BUTTON_AUDIT_REVOCATION: PageButton;
|
|
35
|
+
export declare const BUTTON_AUDIT_REVOCATION_PRE_SIGN: PageButton;
|
|
36
36
|
/**************************************审批按钮组 end************************************/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
export default function useMergeDefaultValues(rawPageData: Ref<
|
|
4
|
-
pageData: Ref<
|
|
2
|
+
import type { RecordString, LayoutConfig } from '../../../edit-page-layout';
|
|
3
|
+
export default function useMergeDefaultValues(rawPageData: Ref<RecordString>, defaultValues: Ref<RecordString>, layoutConfig: Ref<LayoutConfig>): {
|
|
4
|
+
pageData: Ref<RecordString>;
|
|
5
5
|
isFinishData: Ref<boolean>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RecordString } from '../../../edit-page-layout';
|
|
3
3
|
export default function usePageData(): {
|
|
4
|
-
rawPageData: Ref<
|
|
4
|
+
rawPageData: Ref<RecordString>;
|
|
5
5
|
loading: Ref<boolean>;
|
|
6
6
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type { UsePromiseStepPayload, ExposeWithPageButtons,
|
|
2
|
+
import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageButton, ValidateResult } from '../../../edit-page-layout';
|
|
3
3
|
export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
|
|
4
|
-
customLoading: Ref<boolean
|
|
4
|
+
customLoading: Readonly<Ref<boolean>>;
|
|
5
5
|
normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
|
|
6
6
|
handleResetValidateStatus: (btn: PageButton) => void;
|
|
7
7
|
handleValidateResult: ({ result, button }: ValidateResult) => void;
|
|
8
8
|
stepSave: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
9
9
|
stepAdd: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
10
10
|
handleSetCacheButton: (btn: PageButton) => void;
|
|
11
|
-
handleSetCachePageData: (data:
|
|
11
|
+
handleSetCachePageData: (data: RecordString) => void;
|
|
12
12
|
handleSetCacheRefresh: (refresh: boolean) => void;
|
|
13
13
|
handleSetCacheShowMessage: (show: boolean) => void;
|
|
14
14
|
stepTriggerValidate: () => void;
|
|
@@ -31,6 +31,8 @@ export default function usePromiseStep<T extends UsePromiseStepPayload>(payload:
|
|
|
31
31
|
restOfConfirm: () => void;
|
|
32
32
|
composeReject: () => void;
|
|
33
33
|
composeCancelAudit: () => void;
|
|
34
|
+
composeFlowView: () => void;
|
|
34
35
|
stepCancelAuditModal: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
35
36
|
stepCancelAudit: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
37
|
+
stepFlowView: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
|
|
36
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref, ComponentPublicInstance } from 'vue';
|
|
2
|
-
import type { LayoutConfig,
|
|
2
|
+
import type { LayoutConfig, RecordString } from '../../../edit-page-layout';
|
|
3
3
|
export default function useRefInstance(layoutRef: Ref<ComponentPublicInstance | null>): {
|
|
4
|
-
pageData: Ref<
|
|
4
|
+
pageData: Ref<RecordString>;
|
|
5
5
|
layoutConfig: Ref<LayoutConfig>;
|
|
6
|
-
defaultValues: Ref<
|
|
6
|
+
defaultValues: Ref<RecordString>;
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type { LayoutConfig,
|
|
2
|
+
import type { LayoutConfig, RecordString } from '../../../edit-page-layout';
|
|
3
3
|
export default function useRemoteConfig(): {
|
|
4
4
|
layoutConfig: Ref<LayoutConfig>;
|
|
5
|
-
defaultValues: Ref<
|
|
5
|
+
defaultValues: Ref<RecordString>;
|
|
6
6
|
layoutLoading: Ref<boolean>;
|
|
7
7
|
isFinishConfig: Ref<boolean>;
|
|
8
8
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { DefineComponent, ComponentPropsOptions, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentObjectPropsOptions } from 'vue';
|
|
2
|
-
import type { LayoutConfig,
|
|
2
|
+
import type { LayoutConfig, RecordString } from '../../edit-page-layout';
|
|
3
3
|
declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
4
4
|
[x: string]: unknown;
|
|
5
5
|
}>>, {
|
|
6
6
|
classes: ComputedRef<{
|
|
7
7
|
[key: string]: string | boolean;
|
|
8
8
|
}>;
|
|
9
|
-
defaultValues: Ref<
|
|
9
|
+
defaultValues: Ref<RecordString>;
|
|
10
10
|
layoutConfig: Ref<LayoutConfig>;
|
|
11
|
-
pageData: Ref<
|
|
11
|
+
pageData: Ref<RecordString>;
|
|
12
12
|
loading: Ref<boolean>;
|
|
13
13
|
layoutLoading: Ref<boolean>;
|
|
14
|
-
customLoading: Ref<boolean
|
|
14
|
+
customLoading: Readonly<Ref<boolean>>;
|
|
15
15
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
|
|
16
16
|
[x: string]: unknown;
|
|
17
17
|
}>>>>, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
-
import type { LayoutConfig,
|
|
2
|
+
import type { LayoutConfig, RecordString } from '../../edit-page-layout';
|
|
3
3
|
export declare const LAYOUT_CONFIG_TOKEN: InjectionKey<Ref<LayoutConfig>>;
|
|
4
4
|
export declare const LAYOUT_CONFIG_TOKEN_DEFAULT_VALUE: Ref<LayoutConfig>;
|
|
5
|
-
export declare const DEFAULT_VALUE_TOKEN: InjectionKey<Ref<
|
|
6
|
-
export declare const DEFAULT_VALUE_TOKEN_DEFAULT_VALUE: Ref<
|
|
7
|
-
export declare const LAYOUT_PAGE_DATA_TOKEN: InjectionKey<Ref<
|
|
5
|
+
export declare const DEFAULT_VALUE_TOKEN: InjectionKey<Ref<RecordString>>;
|
|
6
|
+
export declare const DEFAULT_VALUE_TOKEN_DEFAULT_VALUE: Ref<RecordString>;
|
|
7
|
+
export declare const LAYOUT_PAGE_DATA_TOKEN: InjectionKey<Ref<RecordString>>;
|
|
8
8
|
export declare const LAYOUT_PAGE_DATA_TOKEN_DEFAULT_VALUE: Ref<{
|
|
9
9
|
id: null;
|
|
10
10
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RecordString } from './../../edit-page-layout';
|
|
3
3
|
export declare const relationGraphProps: {
|
|
4
4
|
readonly visible: {
|
|
5
5
|
readonly type: BooleanConstructor;
|
|
@@ -16,7 +16,7 @@ export declare const relationGraphProps: {
|
|
|
16
16
|
readonly default: "";
|
|
17
17
|
};
|
|
18
18
|
readonly onChange: {
|
|
19
|
-
type: PropType<((value:
|
|
19
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
20
20
|
default: unknown;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MessageType } from 'ant-design-vue/lib/message';
|
|
2
|
-
import type { Config,
|
|
2
|
+
import type { Config, RecordString } from './src/remote-select-types';
|
|
3
3
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
4
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
5
5
|
import QRemoteSelect from './src/remote-select.vue';
|
|
@@ -23,7 +23,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
23
23
|
default: number;
|
|
24
24
|
};
|
|
25
25
|
onChange: {
|
|
26
|
-
type: PropType<((value:
|
|
26
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
27
27
|
default: unknown;
|
|
28
28
|
};
|
|
29
29
|
}, {
|
|
@@ -48,7 +48,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
48
48
|
};
|
|
49
49
|
formatTitle: (item: Record<string, unknown>) => string;
|
|
50
50
|
handleFocus: () => void;
|
|
51
|
-
handleSearch: (
|
|
51
|
+
handleSearch: (changeValue?: string | undefined) => void;
|
|
52
52
|
handleChange: (changeValue: string) => void | MessageType;
|
|
53
53
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
54
54
|
value: {
|
|
@@ -68,12 +68,12 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
68
68
|
default: number;
|
|
69
69
|
};
|
|
70
70
|
onChange: {
|
|
71
|
-
type: PropType<((value:
|
|
71
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
72
72
|
default: unknown;
|
|
73
73
|
};
|
|
74
74
|
}>>, {
|
|
75
75
|
row: Record<string | number, unknown>;
|
|
76
|
-
onChange: ((value:
|
|
76
|
+
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
77
77
|
value: string;
|
|
78
78
|
config: Config;
|
|
79
79
|
idx: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { FormFieldsItem,
|
|
2
|
+
import type { FormFieldsItem, RecordString } from './../../edit-page-layout';
|
|
3
3
|
import type { VxeTableProps } from 'vxe-table';
|
|
4
|
-
export {
|
|
4
|
+
export { RecordString };
|
|
5
5
|
export type TableConfig = VxeTableProps;
|
|
6
6
|
export type RequestMethod = 'get' | 'post';
|
|
7
7
|
export interface Columns {
|
|
@@ -13,9 +13,9 @@ export interface Columns {
|
|
|
13
13
|
width?: number;
|
|
14
14
|
}
|
|
15
15
|
export interface ExtendFunImport {
|
|
16
|
-
pageData:
|
|
17
|
-
userInfo:
|
|
18
|
-
row?:
|
|
16
|
+
pageData: RecordString;
|
|
17
|
+
userInfo: RecordString;
|
|
18
|
+
row?: RecordString;
|
|
19
19
|
idx?: number;
|
|
20
20
|
}
|
|
21
21
|
export type HandleBefore = (value?: ExtendFunImport) => Promise<string | boolean | void>;
|
|
@@ -54,7 +54,7 @@ export declare const remoteSelectProps: {
|
|
|
54
54
|
default: number;
|
|
55
55
|
};
|
|
56
56
|
onChange: {
|
|
57
|
-
type: PropType<((value:
|
|
57
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
58
58
|
default: unknown;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MessageType } from 'ant-design-vue/lib/message';
|
|
2
|
-
import type { Config,
|
|
2
|
+
import type { Config, RecordString } from './remote-select-types';
|
|
3
3
|
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, ComputedRef } from 'vue';
|
|
4
4
|
declare const _sfc_main: DefineComponent<{
|
|
5
5
|
value: {
|
|
@@ -19,7 +19,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
19
19
|
default: number;
|
|
20
20
|
};
|
|
21
21
|
onChange: {
|
|
22
|
-
type: PropType<((value:
|
|
22
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
23
23
|
default: unknown;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
@@ -44,7 +44,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
formatTitle: (item: Record<string, unknown>) => string;
|
|
46
46
|
handleFocus: () => void;
|
|
47
|
-
handleSearch: (
|
|
47
|
+
handleSearch: (changeValue?: string) => void;
|
|
48
48
|
handleChange: (changeValue: string) => void | MessageType;
|
|
49
49
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
50
50
|
value: {
|
|
@@ -64,12 +64,12 @@ declare const _sfc_main: DefineComponent<{
|
|
|
64
64
|
default: number;
|
|
65
65
|
};
|
|
66
66
|
onChange: {
|
|
67
|
-
type: PropType<((value:
|
|
67
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
68
68
|
default: unknown;
|
|
69
69
|
};
|
|
70
70
|
}>>, {
|
|
71
71
|
row: Record<string | number, unknown>;
|
|
72
|
-
onChange: ((value:
|
|
72
|
+
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
73
73
|
value: string;
|
|
74
74
|
config: Config;
|
|
75
75
|
idx: number;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { EditOutlinedIconType } from '@ant-design/icons-vue/lib/icons/EditOutlined';
|
|
2
|
+
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
4
|
+
import QRichEditorModel from './src/rich-editor-model.vue';
|
|
5
|
+
export { QRichEditorModel };
|
|
6
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
7
|
+
editorModalFlag: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
value: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
srmI18n: (i18nKey: string, defaultValue: string, account?: string | number | undefined) => string;
|
|
21
|
+
props: any;
|
|
22
|
+
emits: (event: "update:value" | "handleSureClick" | "handleSureClose" | "update:editorModalFlag", ...args: any[]) => void;
|
|
23
|
+
value: Ref<string>;
|
|
24
|
+
disabled: Ref<boolean>;
|
|
25
|
+
visible: Ref<boolean>;
|
|
26
|
+
code: Ref<string>;
|
|
27
|
+
handleSureClick: () => void;
|
|
28
|
+
readonly EditOutlined: EditOutlinedIconType;
|
|
29
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "handleSureClick" | "handleSureClose" | "update:editorModalFlag")[], "update:value" | "handleSureClick" | "handleSureClose" | "update:editorModalFlag", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
30
|
+
editorModalFlag: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
value: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}>> & {
|
|
43
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onHandleSureClick?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
onHandleSureClose?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
"onUpdate:editorModalFlag"?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
value: string;
|
|
50
|
+
editorModalFlag: boolean;
|
|
51
|
+
}, {}>>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const richEditorModelProps: {
|
|
2
|
+
editorModalFlag: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|