@qqt-product/ui 16.0.5 → 20.0.0
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 +27801 -28479
- package/dist/index.umd.js +111 -111
- package/dist/lib/components/audit-modal/src/hook/use-audit-config-hook.d.ts +1 -1
- package/dist/lib/components/businessI18n/index.d.ts +2607 -0
- package/dist/lib/components/businessI18n/src/business-i18n.vue.d.ts +2604 -0
- package/dist/lib/components/card-list-layout/index.d.ts +4 -4
- package/dist/lib/components/card-list-layout/src/card-content.vue.d.ts +2 -2
- package/dist/lib/components/card-list-layout/src/cardItem.vue.d.ts +2 -2
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +4 -4
- package/dist/lib/components/checkbox/index.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -0
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +1 -1
- package/dist/lib/components/countdown/index.d.ts +1 -1
- package/dist/lib/components/countdown/src/countdown.d.ts +1 -1
- package/dist/lib/components/currency/index.d.ts +8 -8
- package/dist/lib/components/currency/src/currency.vue.d.ts +8 -8
- package/dist/lib/components/currency/src/use-methods.d.ts +6 -4
- package/dist/lib/components/detail-form/index.d.ts +2 -2
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +2 -2
- package/dist/lib/components/detail-grid/index.d.ts +20 -2
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +21 -3
- package/dist/lib/components/detail-page-layout/index.d.ts +1 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +1 -0
- package/dist/lib/components/edit-form/index.d.ts +1 -1
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
- package/dist/lib/components/edit-grid/index.d.ts +20 -2
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +9 -1
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +20 -2
- package/dist/lib/components/edit-grid/src/hook/use-grid-config-hook.d.ts +1 -0
- package/dist/lib/components/edit-page-layout/index.d.ts +1 -0
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +30 -17
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +1 -0
- package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
- package/dist/lib/components/empty/index.d.ts +2 -2
- package/dist/lib/components/index.d.ts +4 -2
- package/dist/lib/components/layout/index.d.ts +2 -33
- package/dist/lib/components/layout/src/header/index.vue.d.ts +2 -0
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -0
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +2 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +2 -33
- package/dist/lib/components/layout/src/types.d.ts +0 -1
- package/dist/lib/components/layout-pattern/index.d.ts +1 -0
- package/dist/lib/components/layout-pattern/src/components/tab.vue.d.ts +1 -0
- package/dist/lib/components/layout-pattern/src/components/tabDetail.vue.d.ts +1 -0
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/index.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -0
- package/dist/lib/components/menu/src/index.d.ts +1 -1
- package/dist/lib/components/multipane/index.d.ts +50 -0
- package/dist/lib/components/multipaneResizer/index.d.ts +42 -0
- package/dist/lib/components/page-layout/index.d.ts +5 -5
- package/dist/lib/components/page-layout/src/constant/symbol.d.ts +2 -0
- package/dist/lib/components/page-layout/src/hook/use-audit-button.d.ts +2 -2
- package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +1 -1
- package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +3 -3
- package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +3 -1
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +1 -1
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +5 -5
- package/dist/lib/components/radio/index.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +1 -1
- package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +2 -34
- package/dist/lib/components/select/index.d.ts +1 -1
- package/dist/lib/components/select/src/select.vue.d.ts +1 -1
- package/dist/lib/components/upload-file/index.d.ts +1 -1
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +1 -1
- package/dist/lib/components/upload-image/index.d.ts +44 -6
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +42 -5
- package/dist/lib/utils/event.d.ts +4 -2
- package/dist/style.css +1 -1
- package/package.json +14 -14
- package/dist/lib/components/ladder-price/index.d.ts +0 -85
- package/dist/lib/components/ladder-price/src/LadderNotPriceModal.vue.d.ts +0 -41
- package/dist/lib/components/ladder-price/src/LadderPriceModal.vue.d.ts +0 -42
- package/dist/lib/components/ladder-price/src/hook/use-type-hook.d.ts +0 -9
- package/dist/lib/components/ladder-price/src/ladder-not-price-modal-types.d.ts +0 -16
- package/dist/lib/components/ladder-price/src/ladder-price-modal-types.d.ts +0 -15
- package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +0 -43
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +0 -82
- package/dist/lib/components/ladder-price/src/use-ladder-not-price-modal.d.ts +0 -6
- package/dist/lib/components/ladder-price/src/use-ladder-price.d.ts +0 -6
|
@@ -14,7 +14,7 @@ export default function useFileUpload(ctx: SetupContext, pageData: Ref<RecordStr
|
|
|
14
14
|
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
15
15
|
readonly visible?: boolean | undefined;
|
|
16
16
|
readonly currentRow?: {
|
|
17
|
-
[x: string]:
|
|
17
|
+
[x: string]: any;
|
|
18
18
|
templateNumber: string;
|
|
19
19
|
templateVersion: number;
|
|
20
20
|
templateAccount: string;
|
|
@@ -23,15 +23,15 @@ export default function useFileUpload(ctx: SetupContext, pageData: Ref<RecordStr
|
|
|
23
23
|
} | undefined;
|
|
24
24
|
readonly action?: string | undefined;
|
|
25
25
|
readonly accept?: string | undefined;
|
|
26
|
+
readonly property?: string | undefined;
|
|
26
27
|
readonly dictCode?: string | undefined;
|
|
27
28
|
readonly userInfo?: {
|
|
28
|
-
[x: string]:
|
|
29
|
+
[x: string]: any;
|
|
29
30
|
elsAccount: string;
|
|
30
31
|
subAccount: string;
|
|
31
32
|
serivceUrl: string;
|
|
32
33
|
} | undefined;
|
|
33
34
|
readonly role?: string | undefined;
|
|
34
|
-
readonly property?: string | undefined;
|
|
35
35
|
readonly defaultFileType?: string | undefined;
|
|
36
36
|
readonly requiredFileType?: boolean | undefined;
|
|
37
37
|
readonly defaultFileBelong?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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';
|
|
2
|
+
import type { RecordString, KeydownEventParams, HeaderCellClickEventParams, HeaderCellDblclickEventParams, HeaderCellMenuEventParams, CellClickEventParams, CellDblclickEventParams, CellMenuEventParams, FooterCellClickEventParams, FooterCellDblclickEventParams, FooterCellMenuEventParams, RadioChangeEventParams, CheckboxChangeEventParams, CheckboxAllEventParams, ScrollEventParams, ZoomEventParams, CustomEventParams, CellAreaCutParams, CellAreaCopyParams, CellAreaPasteParams, VxeInstanceParams, InstanceParams } from '../../../edit-page-layout';
|
|
3
3
|
export default function useGridEvents(ctx: SetupContext, pageData: Ref<RecordString>): {
|
|
4
4
|
cacheRows: Ref<RecordString[]>;
|
|
5
5
|
cacheGroupCode: Ref<string>;
|
|
@@ -23,4 +23,6 @@ export default function useGridEvents(ctx: SetupContext, pageData: Ref<RecordStr
|
|
|
23
23
|
handleGridCellAreaCopy: (params: CellAreaCopyParams) => void;
|
|
24
24
|
handleGridCellAreaCut: (params: CellAreaCutParams) => void;
|
|
25
25
|
handleGridCellAreaPaste: (params: CellAreaPasteParams) => void;
|
|
26
|
+
handleGridInstance: (params: VxeInstanceParams) => void;
|
|
27
|
+
handleInstance: (params: InstanceParams) => void;
|
|
26
28
|
};
|
|
@@ -7,7 +7,7 @@ export default function usePromiseStep<T extends UsePromiseStepPayload>(payload:
|
|
|
7
7
|
i18nKey?: string | undefined;
|
|
8
8
|
key: string | symbol;
|
|
9
9
|
args: PageButtonArgsFunctionType | {
|
|
10
|
-
[x: string]:
|
|
10
|
+
[x: string]: any;
|
|
11
11
|
url: string;
|
|
12
12
|
};
|
|
13
13
|
authorityCode?: string | undefined;
|
|
@@ -25,7 +25,7 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
25
25
|
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
26
26
|
readonly visible?: boolean | undefined;
|
|
27
27
|
readonly currentRow?: {
|
|
28
|
-
[x: string]:
|
|
28
|
+
[x: string]: any;
|
|
29
29
|
templateNumber: string;
|
|
30
30
|
templateVersion: number;
|
|
31
31
|
templateAccount: string;
|
|
@@ -34,15 +34,15 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly action?: string | undefined;
|
|
36
36
|
readonly accept?: string | undefined;
|
|
37
|
+
readonly property?: string | undefined;
|
|
37
38
|
readonly dictCode?: string | undefined;
|
|
38
39
|
readonly userInfo?: {
|
|
39
|
-
[x: string]:
|
|
40
|
+
[x: string]: any;
|
|
40
41
|
elsAccount: string;
|
|
41
42
|
subAccount: string;
|
|
42
43
|
serivceUrl: string;
|
|
43
44
|
} | undefined;
|
|
44
45
|
readonly role?: string | undefined;
|
|
45
|
-
readonly property?: string | undefined;
|
|
46
46
|
readonly defaultFileType?: string | undefined;
|
|
47
47
|
readonly requiredFileType?: boolean | undefined;
|
|
48
48
|
readonly defaultFileBelong?: string | undefined;
|
|
@@ -75,7 +75,7 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
75
75
|
i18nKey?: string | undefined;
|
|
76
76
|
key: string | symbol;
|
|
77
77
|
args: PageButtonArgsFunctionType | {
|
|
78
|
-
[x: string]:
|
|
78
|
+
[x: string]: any;
|
|
79
79
|
url: string;
|
|
80
80
|
};
|
|
81
81
|
authorityCode?: string | undefined;
|
|
@@ -143,7 +143,7 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
143
143
|
i18nKey?: string | undefined;
|
|
144
144
|
key: string | symbol;
|
|
145
145
|
args: PageButtonArgsFunctionType | {
|
|
146
|
-
[x: string]:
|
|
146
|
+
[x: string]: any;
|
|
147
147
|
url: string;
|
|
148
148
|
};
|
|
149
149
|
authorityCode?: string | undefined;
|
|
@@ -94,11 +94,11 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
94
94
|
readonly value: string;
|
|
95
95
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
96
96
|
readonly busAccount: string;
|
|
97
|
+
readonly colSpan: string;
|
|
97
98
|
readonly options: Option[];
|
|
98
99
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
99
100
|
readonly dictCode: string;
|
|
100
101
|
readonly required: "0" | "1";
|
|
101
102
|
readonly isLayout: boolean;
|
|
102
|
-
readonly colSpan: string;
|
|
103
103
|
}, {}>>;
|
|
104
104
|
export default _default;
|
|
@@ -90,11 +90,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
90
90
|
readonly value: string;
|
|
91
91
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
92
92
|
readonly busAccount: string;
|
|
93
|
+
readonly colSpan: string;
|
|
93
94
|
readonly options: Option[];
|
|
94
95
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
95
96
|
readonly dictCode: string;
|
|
96
97
|
readonly required: "0" | "1";
|
|
97
98
|
readonly isLayout: boolean;
|
|
98
|
-
readonly colSpan: string;
|
|
99
99
|
}, {}>;
|
|
100
100
|
export default _sfc_main;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SrmI18n } from '../../../utils/type';
|
|
2
2
|
import type { RecordString } from '../../select-modal';
|
|
3
3
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
-
import RelationGraph from 'relation-graph
|
|
4
|
+
import RelationGraph from 'relation-graph-vue3';
|
|
5
5
|
declare const _sfc_main: DefineComponent<{
|
|
6
6
|
readonly visible: {
|
|
7
7
|
readonly type: BooleanConstructor;
|
|
@@ -24,39 +24,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
24
24
|
}, {
|
|
25
25
|
modalVisibleDocket: Ref<boolean>;
|
|
26
26
|
relationGraph$: Ref<RelationGraph | undefined>;
|
|
27
|
-
options:
|
|
28
|
-
showDebugPanel: boolean;
|
|
29
|
-
defaultFocusRootNode: boolean;
|
|
30
|
-
backgrounImageNoRepeat: boolean;
|
|
31
|
-
layouts: {
|
|
32
|
-
label: string;
|
|
33
|
-
layoutName: string;
|
|
34
|
-
layoutClassName: string;
|
|
35
|
-
defaultNodeShape: number;
|
|
36
|
-
defaultLineShape: number;
|
|
37
|
-
from: string;
|
|
38
|
-
min_per_width: string;
|
|
39
|
-
max_per_width: string;
|
|
40
|
-
min_per_height: string;
|
|
41
|
-
max_per_height: string;
|
|
42
|
-
levelDistance: string;
|
|
43
|
-
}[];
|
|
44
|
-
defaultLineMarker: {
|
|
45
|
-
markerWidth: number;
|
|
46
|
-
markerHeight: number;
|
|
47
|
-
refX: number;
|
|
48
|
-
refY: number;
|
|
49
|
-
data: string;
|
|
50
|
-
};
|
|
51
|
-
defaultExpandHolderPosition: string;
|
|
52
|
-
defaultNodeShape: number;
|
|
53
|
-
defaultNodeWidth: string;
|
|
54
|
-
defaultLineShape: number;
|
|
55
|
-
defaultJunctionPoint: string;
|
|
56
|
-
defaultNodeBorderWidth: number;
|
|
57
|
-
defaultLineColor: string;
|
|
58
|
-
defaultNodeColor: string;
|
|
59
|
-
};
|
|
27
|
+
options: any;
|
|
60
28
|
handleCancel: () => void;
|
|
61
29
|
srmI18n: SrmI18n;
|
|
62
30
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:visible"[], "update:visible", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
@@ -87,8 +87,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
87
87
|
readonly value: string;
|
|
88
88
|
readonly onChange: ((args: MixSelectArgs) => void) | ((args: MixSelectArgs) => void)[];
|
|
89
89
|
readonly busAccount: string;
|
|
90
|
-
readonly mode: "multiple" | "tags" | "combobox";
|
|
91
90
|
readonly options: SelectOption[];
|
|
91
|
+
readonly mode: "multiple" | "tags" | "combobox";
|
|
92
92
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
93
93
|
readonly dictCode: string;
|
|
94
94
|
}, {}>>;
|
|
@@ -83,8 +83,8 @@ declare const _sfc_main: DefineComponent<{
|
|
|
83
83
|
readonly value: string;
|
|
84
84
|
readonly onChange: ((args: MixSelectArgs) => void) | ((args: MixSelectArgs) => void)[];
|
|
85
85
|
readonly busAccount: string;
|
|
86
|
-
readonly mode: "multiple" | "tags" | "combobox";
|
|
87
86
|
readonly options: SelectOption[];
|
|
87
|
+
readonly mode: "multiple" | "tags" | "combobox";
|
|
88
88
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
89
89
|
readonly dictCode: string;
|
|
90
90
|
}, {}>;
|
|
@@ -378,10 +378,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
378
378
|
readonly currentRow: CurrentRow;
|
|
379
379
|
readonly action: string;
|
|
380
380
|
readonly accept: string;
|
|
381
|
+
readonly property: string;
|
|
381
382
|
readonly dictCode: string;
|
|
382
383
|
readonly userInfo: UserInfo;
|
|
383
384
|
readonly role: string;
|
|
384
|
-
readonly property: string;
|
|
385
385
|
readonly defaultFileType: string;
|
|
386
386
|
readonly requiredFileType: boolean;
|
|
387
387
|
readonly defaultFileBelong: string;
|
|
@@ -370,10 +370,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
370
370
|
readonly currentRow: CurrentRow;
|
|
371
371
|
readonly action: string;
|
|
372
372
|
readonly accept: string;
|
|
373
|
+
readonly property: string;
|
|
373
374
|
readonly dictCode: string;
|
|
374
375
|
readonly userInfo: UserInfo;
|
|
375
376
|
readonly role: string;
|
|
376
|
-
readonly property: string;
|
|
377
377
|
readonly defaultFileType: string;
|
|
378
378
|
readonly requiredFileType: boolean;
|
|
379
379
|
readonly defaultFileBelong: string;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { EyeOutlinedIconType } from '@ant-design/icons-vue/lib/icons/EyeOutlined';
|
|
2
|
+
import type { DeleteOutlinedIconType } from '@ant-design/icons-vue/lib/icons/DeleteOutlined';
|
|
3
|
+
import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
|
|
3
4
|
import type { UploadFiles } from './src/upload-image-type';
|
|
4
5
|
import type { UploadFile } from 'ant-design-vue';
|
|
6
|
+
import type { SrmI18n } from '../../utils/type';
|
|
7
|
+
import type { Request } from '@qqt-product/api/dist/utils/request';
|
|
5
8
|
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
9
|
+
import type { RegisterFn } from '../modal';
|
|
10
|
+
import type { RecordString } from '../select-modal';
|
|
11
|
+
import type { EditPageLayoutProps, CurrentRow } from '../edit-page-layout';
|
|
6
12
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
7
13
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
8
14
|
import QUploadImage from './src/upload-image.vue';
|
|
@@ -58,6 +64,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
58
64
|
default: unknown;
|
|
59
65
|
};
|
|
60
66
|
}, {
|
|
67
|
+
props: any;
|
|
68
|
+
emit: (event: "change" | "update:value", ...args: any[]) => void;
|
|
69
|
+
token: string;
|
|
70
|
+
layoutProps: EditPageLayoutProps;
|
|
71
|
+
currentRow: Ref<CurrentRow>;
|
|
72
|
+
headId: Ref<string>;
|
|
73
|
+
pageData: Ref<RecordString>;
|
|
74
|
+
register: RegisterFn;
|
|
75
|
+
openModal: <T = any>(props?: boolean | undefined, data?: T | undefined, openOnSet?: boolean | undefined) => void;
|
|
61
76
|
state: {
|
|
62
77
|
previewVisible: boolean;
|
|
63
78
|
previewImage: string;
|
|
@@ -148,14 +163,37 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
148
163
|
};
|
|
149
164
|
multiple: Ref<boolean>;
|
|
150
165
|
limit: Ref<number>;
|
|
166
|
+
uploadImageData: Ref<Record<string, any>>;
|
|
151
167
|
accept: Ref<string>;
|
|
168
|
+
actionRoutePath: Ref<string>;
|
|
169
|
+
sourceNumber: Ref<string>;
|
|
170
|
+
businessType: any;
|
|
171
|
+
Request: Request;
|
|
172
|
+
srmI18n: SrmI18n;
|
|
152
173
|
uploadStatues: Ref<boolean>;
|
|
174
|
+
uploadNumber: Ref<number>;
|
|
175
|
+
imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
|
|
176
|
+
handleUploadImage: () => void;
|
|
153
177
|
beforeUpload: (file: UploadFile<any>, uploadFiles: UploadFile<any>[]) => boolean;
|
|
154
|
-
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
155
178
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
179
|
+
handleItemRemove: (file: any) => void;
|
|
156
180
|
isImageUrlFun: () => boolean;
|
|
157
|
-
|
|
158
|
-
|
|
181
|
+
readonly PictureOutlined: PictureOutlinedIconType;
|
|
182
|
+
readonly DeleteOutlined: DeleteOutlinedIconType;
|
|
183
|
+
readonly EyeOutlined: EyeOutlinedIconType;
|
|
184
|
+
Preview: DefineComponent<{
|
|
185
|
+
readonly url: {
|
|
186
|
+
readonly type: PropType<string>;
|
|
187
|
+
};
|
|
188
|
+
}, {
|
|
189
|
+
url: Ref<string | undefined> | undefined;
|
|
190
|
+
register: RegisterFn;
|
|
191
|
+
handleOnload: () => void;
|
|
192
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
193
|
+
readonly url: {
|
|
194
|
+
readonly type: PropType<string>;
|
|
195
|
+
};
|
|
196
|
+
}>>, {}, {}>;
|
|
159
197
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
160
198
|
readonly value: {
|
|
161
199
|
readonly type: StringConstructor;
|
|
@@ -214,8 +252,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
214
252
|
readonly businessType: string;
|
|
215
253
|
readonly accept: string;
|
|
216
254
|
readonly multiple: boolean;
|
|
217
|
-
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
218
255
|
readonly disabled: boolean;
|
|
256
|
+
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
219
257
|
readonly actionRoutePath: string;
|
|
220
258
|
readonly canRemove: boolean;
|
|
221
259
|
readonly limit: number;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EyeOutlinedIconType } from '@ant-design/icons-vue/lib/icons/EyeOutlined';
|
|
2
|
+
import type { DeleteOutlinedIconType } from '@ant-design/icons-vue/lib/icons/DeleteOutlined';
|
|
3
|
+
import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
|
|
2
4
|
import type { SrmI18n } from '../../../utils/type';
|
|
3
5
|
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
6
|
+
import type { RegisterFn } from '../../modal';
|
|
7
|
+
import type { EditPageLayoutProps, CurrentRow, RecordString } from '../../edit-page-layout';
|
|
4
8
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
5
9
|
import { UploadFiles } from './upload-image-type';
|
|
6
10
|
import type { UploadFile } from 'ant-design-vue';
|
|
11
|
+
import qqtApi from '@qqt-product/api';
|
|
7
12
|
declare const _sfc_main: DefineComponent<{
|
|
8
13
|
readonly value: {
|
|
9
14
|
readonly type: StringConstructor;
|
|
@@ -54,6 +59,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
54
59
|
default: unknown;
|
|
55
60
|
};
|
|
56
61
|
}, {
|
|
62
|
+
props: any;
|
|
63
|
+
emit: (event: "change" | "update:value", ...args: any[]) => void;
|
|
64
|
+
token: string;
|
|
65
|
+
layoutProps: EditPageLayoutProps;
|
|
66
|
+
currentRow: Ref<CurrentRow>;
|
|
67
|
+
headId: Ref<string>;
|
|
68
|
+
pageData: Ref<RecordString>;
|
|
69
|
+
register: RegisterFn;
|
|
70
|
+
openModal: <T = any>(props?: boolean | undefined, data?: T | undefined, openOnSet?: boolean | undefined) => void;
|
|
57
71
|
state: {
|
|
58
72
|
previewVisible: boolean;
|
|
59
73
|
previewImage: string;
|
|
@@ -144,14 +158,37 @@ declare const _sfc_main: DefineComponent<{
|
|
|
144
158
|
};
|
|
145
159
|
multiple: Ref<boolean>;
|
|
146
160
|
limit: Ref<number>;
|
|
161
|
+
uploadImageData: Ref<Record<string, any>>;
|
|
147
162
|
accept: Ref<string>;
|
|
163
|
+
actionRoutePath: Ref<string>;
|
|
164
|
+
sourceNumber: Ref<string>;
|
|
165
|
+
businessType: any;
|
|
166
|
+
Request: qqtApi.Request;
|
|
167
|
+
srmI18n: SrmI18n;
|
|
148
168
|
uploadStatues: Ref<boolean>;
|
|
169
|
+
uploadNumber: Ref<number>;
|
|
170
|
+
imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
|
|
171
|
+
handleUploadImage: () => void;
|
|
149
172
|
beforeUpload: (file: UploadFile, uploadFiles: UploadFile[]) => boolean;
|
|
150
|
-
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
151
173
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
174
|
+
handleItemRemove: (file: any) => void;
|
|
152
175
|
isImageUrlFun: () => boolean;
|
|
153
|
-
|
|
154
|
-
|
|
176
|
+
readonly PictureOutlined: PictureOutlinedIconType;
|
|
177
|
+
readonly DeleteOutlined: DeleteOutlinedIconType;
|
|
178
|
+
readonly EyeOutlined: EyeOutlinedIconType;
|
|
179
|
+
Preview: DefineComponent<{
|
|
180
|
+
readonly url: {
|
|
181
|
+
readonly type: PropType<string>;
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
url: Ref<string | undefined> | undefined;
|
|
185
|
+
register: RegisterFn;
|
|
186
|
+
handleOnload: () => void;
|
|
187
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
188
|
+
readonly url: {
|
|
189
|
+
readonly type: PropType<string>;
|
|
190
|
+
};
|
|
191
|
+
}>>, {}, {}>;
|
|
155
192
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
156
193
|
readonly value: {
|
|
157
194
|
readonly type: StringConstructor;
|
|
@@ -210,8 +247,8 @@ declare const _sfc_main: DefineComponent<{
|
|
|
210
247
|
readonly businessType: string;
|
|
211
248
|
readonly accept: string;
|
|
212
249
|
readonly multiple: boolean;
|
|
213
|
-
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
214
250
|
readonly disabled: boolean;
|
|
251
|
+
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
215
252
|
readonly actionRoutePath: string;
|
|
216
253
|
readonly canRemove: boolean;
|
|
217
254
|
readonly limit: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Emitter } from '@qqt-product/utils';
|
|
2
2
|
import { VxeTableInstance } from 'vxe-table';
|
|
3
|
-
import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_LINK_CLICK, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCEL_AUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_FILL, SYMBOL_VXE_KEYDOWN, SYMBOL_VXE_HEADER_CELL_CLICK, SYMBOL_VXE_HEADER_CELL_DBLCLICK, SYMBOL_VXE_HEADER_CELL_MENU, SYMBOL_VXE_CELL_CLICK, SYMBOL_VXE_CELL_DBLCLICK, SYMBOL_VXE_CELL_MENU, SYMBOL_VXE_FOOTER_CELL_CLICK, SYMBOL_VXE_FOOTER_CELL_DBLCLICK, SYMBOL_VXE_FOOTER_CELL_MENU, SYMBOL_VXE_CHECKBOX_CHANGE, SYMBOL_VXE_CHECKBOX_ALL, SYMBOL_VXE_SCROLL, SYMBOL_VXE_ZOOM, SYMBOL_VXE_CUSTOM, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT, SYMBOL_FLOW_APPROVAL_CALLBACK } from '../../lib/components/page-layout';
|
|
4
|
-
import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, PageButtonDeleteFileRow, KeydownEventParams, FlowApprovalCallbackPayload } from '../../lib/components/edit-page-layout';
|
|
3
|
+
import { SYMBOL_BINDFUNCTION, SYMBOL_CUSTOM_BINDFUNCTION, SYMBOL_VXE_BINDFUNCTION, SYMBOL_CUSTOM_VXE_BINDFUNCTION, SYMBOL_ADD_ONE_ROW, SYMBOL_DELETE_ROWS, SYMBOL_CUSTOM_CLICK, SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK, SYMBOL_CACHE_BUTTON, SYMBOL_CACHE_PAGEDATA, SYMBOL_CACHE_REFRESH, SYMBOL_CACHE_SHOW_MESSAGE, SYMBOL_VALIDATE, SYMBOL_VALIDATE_RESULT, SYMBOL_LINK_CLICK, SYMBOL_VALIDATE_SUCCESS, SYMBOL_REFRESH, SYMBOL_BACK, SYMBOL_SAVE, SYMBOL_PUBLISH, SYMBOL_SUBMIT, SYMBOL_CONFIRM, SYMBOL_REJECT, SYMBOL_UPLOAD, SYMBOL_UPLOAD_GRID, SYMBOL_CANCEL_AUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_FILL, SYMBOL_VXE_KEYDOWN, SYMBOL_VXE_HEADER_CELL_CLICK, SYMBOL_VXE_HEADER_CELL_DBLCLICK, SYMBOL_VXE_HEADER_CELL_MENU, SYMBOL_VXE_CELL_CLICK, SYMBOL_VXE_CELL_DBLCLICK, SYMBOL_VXE_CELL_MENU, SYMBOL_VXE_FOOTER_CELL_CLICK, SYMBOL_VXE_FOOTER_CELL_DBLCLICK, SYMBOL_VXE_FOOTER_CELL_MENU, SYMBOL_VXE_CHECKBOX_CHANGE, SYMBOL_VXE_CHECKBOX_ALL, SYMBOL_VXE_SCROLL, SYMBOL_VXE_ZOOM, SYMBOL_VXE_CUSTOM, SYMBOL_VXE_INSTANCE, SYMBOL_INSTANCE, SYMBOL_IMPORT_ROWS, SYMBOL_FLOW_VIEW, SYMBOL_AUDIT_AGREE, SYMBOL_AUDIT_REFUSE, SYMBOL_AUDIT_INFORMED, SYMBOL_AUDIT_TRANSFER, SYMBOL_AUDIT_BACK, SYMBOL_AUDIT_TRANSACTION, SYMBOL_AUDIT_INVALID, SYMBOL_AUDIT_REVOCATION, SYMBOL_AUDIT_REVOCATION_PRE_SIGN, SYMBOL_AUDIT_FLOW_IMAGE, SYMBOL_AUDIT_APPROVAL_COMMENT, SYMBOL_AUDIT_SIGN_NODE, SYMBOL_AUDIT_PRE_SIGN, SYMBOL_AUDIT_AFTER_SIGN, SYMBOL_AUDIT_PRINT, SYMBOL_AUDIT_ADD_NODE_HISTORY, SYMBOL_AUDIT_CHAT, SYMBOL_FLOW_APPROVAL_CALLBACK } from '../../lib/components/page-layout';
|
|
4
|
+
import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, PageButtonDeleteFileRow, KeydownEventParams, VxeInstanceParams, FlowApprovalCallbackPayload, InstanceParams } from '../../lib/components/edit-page-layout';
|
|
5
5
|
import type { ButtonItem, ObjectMap, ToolsButtonItem } from '../../lib/components/list-page-layout';
|
|
6
6
|
import type { VxeItemFileUpload } from '../../lib/components/upload-file';
|
|
7
7
|
import { SYMBOL_GRID_INSTANCE, SYMBOL_HANDLE_SETTING, SYMBOL_HANDLE_ADD, SYMBOL_HANDLE_EXPORT, SYMBOL_HANDLE_IMPORT, SYMBOL_HANDLE_QUICK_NAV, SYMBOL_HANDLE_RECORD, SYMBOL_HANDLE_HELP_TEXT, SYMBOL_HANDLE_ATTACHMENT_TEXT, SYMBOL_HANDLE_VIDEO_TEXT, SYMBOL_HANDLE_MERGE_GRID, SYMBOL_HANDLE_CHATBI, SYMBOL_FETCH_NAV_DATA } from '../components/list-page-layout/src/symbol';
|
|
@@ -63,6 +63,8 @@ export type Events = {
|
|
|
63
63
|
[SYMBOL_VXE_SCROLL]: KeydownEventParams;
|
|
64
64
|
[SYMBOL_VXE_ZOOM]: KeydownEventParams;
|
|
65
65
|
[SYMBOL_VXE_CUSTOM]: KeydownEventParams;
|
|
66
|
+
[SYMBOL_VXE_INSTANCE]: VxeInstanceParams;
|
|
67
|
+
[SYMBOL_INSTANCE]: InstanceParams;
|
|
66
68
|
[SYMBOL_IMPORT_ROWS]: PageButton;
|
|
67
69
|
[SYMBOL_FLOW_VIEW]: PageButton;
|
|
68
70
|
[SYMBOL_AUDIT_AGREE]: PageButton;
|