@qqt-product/ui 0.0.21 → 0.0.23
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 +22166 -21219
- package/dist/index.umd.js +95 -95
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +2 -1
- package/dist/lib/components/card-list-layout/index.d.ts +2 -1
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +2 -1
- package/dist/lib/components/card-list-layout/src/sidebar.vue.d.ts +2 -1
- package/dist/lib/components/checkbox/index.d.ts +3 -3
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +3 -3
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency-type.d.ts +1 -1
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/detail-form/index.d.ts +3 -3
- package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +3 -3
- package/dist/lib/components/detail-grid/index.d.ts +3 -1
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +3 -1
- package/dist/lib/components/detail-page-layout/index.d.ts +9 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +9 -0
- package/dist/lib/components/edit-form/index.d.ts +3 -3
- package/dist/lib/components/edit-form/src/edit-form-types.d.ts +1 -1
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +3 -3
- package/dist/lib/components/edit-grid/index.d.ts +3 -1
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +3 -1
- package/dist/lib/components/edit-page-layout/index.d.ts +9 -0
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +7 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +9 -0
- package/dist/lib/components/editor/index.d.ts +2 -1
- package/dist/lib/components/editor/src/index.vue.d.ts +2 -1
- package/dist/lib/components/import-modal/index.d.ts +2 -0
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +2 -0
- package/dist/lib/components/item-wrap/index.d.ts +4 -4
- 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 +4 -4
- package/dist/lib/components/ladder-price/index.d.ts +11 -0
- package/dist/lib/components/ladder-price/src/ladder-price-types.d.ts +4 -0
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +11 -0
- package/dist/lib/components/layout/src/header/index.vue.d.ts +6 -5
- package/dist/lib/components/layout/src/header/navRight/customMessage.vue.d.ts +2 -1
- package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +5 -4
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +3 -2
- package/dist/lib/components/layout/src/header/navRight/settingDrawer.vue.d.ts +2 -1
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +2 -1
- package/dist/lib/components/layout/src/sider/search.vue.d.ts +2 -1
- package/dist/lib/components/layout-buttons/index.d.ts +2 -1
- package/dist/lib/components/layout-buttons/src/layout-buttons.vue.d.ts +2 -1
- package/dist/lib/components/layout-pattern/index.d.ts +169 -2
- package/dist/lib/components/layout-pattern/src/components/master.vue.d.ts +31 -0
- package/dist/lib/components/layout-pattern/src/components/masterDetail.vue.d.ts +31 -0
- package/dist/lib/components/layout-pattern/src/components/tab.vue.d.ts +26 -0
- package/dist/lib/components/layout-pattern/src/components/tabDetail.vue.d.ts +26 -0
- package/dist/lib/components/layout-pattern/src/components/vertical.vue.d.ts +1 -163
- package/dist/lib/components/layout-pattern/src/components/verticalDetail.vue.d.ts +30 -0
- package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +3 -3
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +168 -2
- package/dist/lib/components/layout-pattern/src/use-layout-pattern.d.ts +3 -3
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/use-grid-slot-hook.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/components/common/import-modal/import-modal.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +48 -44
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +2 -1
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/components/list-content-buttons/list-content-buttons.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/quick-nav/index.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/components/list-header/module/tabs/index.vue.d.ts +2 -0
- package/dist/lib/components/list-page-layout/src/hooks/get-columns-hook.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/hooks/use-button-function-hook.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +2 -0
- package/dist/lib/components/radio/index.d.ts +3 -3
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +3 -3
- package/dist/lib/components/rich-editor-model/index.d.ts +2 -1
- package/dist/lib/components/rich-editor-model/src/rich-editor-model.vue.d.ts +2 -1
- package/dist/lib/components/sale-template/index.d.ts +2 -1
- package/dist/lib/components/sale-template/src/sale-template.vue.d.ts +2 -1
- package/dist/lib/components/switch/index.d.ts +5 -5
- package/dist/lib/components/switch/src/switch-types.d.ts +1 -1
- package/dist/lib/components/switch/src/switch.vue.d.ts +5 -5
- package/dist/lib/components/upload-file/index.d.ts +21 -1
- package/dist/lib/components/upload-file/src/upload-file-types.d.ts +8 -0
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +21 -1
- package/dist/lib/components/upload-file-vxe/index.d.ts +2 -0
- package/dist/lib/components/upload-file-vxe/src/upload-file-vxe.vue.d.ts +2 -0
- package/dist/lib/components/upload-image/index.d.ts +3 -1
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +3 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/utils/token.d.ts +8 -0
- package/dist/lib/utils/type.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ObjectMap } from '../../../list-page-layout';
|
|
2
1
|
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
import type { LayoutConfig, GroupItem, CurrentRow,
|
|
2
|
+
import type { PageButton, LayoutConfig, GroupItem, CurrentRow, ComputedFormFieldsItem } from '../../../edit-page-layout';
|
|
4
3
|
declare const _sfc_main: DefineComponent<{
|
|
5
4
|
title: {
|
|
6
5
|
type: PropType<string>;
|
|
@@ -12,175 +11,14 @@ declare const _sfc_main: DefineComponent<{
|
|
|
12
11
|
computedGroups: ComputedRef<GroupItem[]>;
|
|
13
12
|
showPageHeader: boolean;
|
|
14
13
|
showLayoutAnchor: boolean;
|
|
15
|
-
fileVisible: Ref<boolean>;
|
|
16
|
-
auditModalVisble: Ref<boolean>;
|
|
17
|
-
approvalModalVisble: Ref<boolean>;
|
|
18
|
-
nodeHistroyModalVisble: Ref<boolean>;
|
|
19
14
|
currentRow: CurrentRow;
|
|
20
|
-
fileProps: Ref<{
|
|
21
|
-
readonly data?: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
businessType: string;
|
|
24
|
-
headId: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
27
|
-
readonly visible?: boolean | undefined;
|
|
28
|
-
readonly currentRow?: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
templateNumber: string;
|
|
31
|
-
templateVersion: number;
|
|
32
|
-
templateAccount: string;
|
|
33
|
-
busAccount: string;
|
|
34
|
-
elsAccount: string;
|
|
35
|
-
} | undefined;
|
|
36
|
-
readonly action?: string | undefined;
|
|
37
|
-
readonly accept?: string | undefined;
|
|
38
|
-
readonly dictCode?: string | undefined;
|
|
39
|
-
readonly property?: string | undefined;
|
|
40
|
-
readonly role?: Role | undefined;
|
|
41
|
-
readonly userInfo?: {
|
|
42
|
-
[x: string]: unknown;
|
|
43
|
-
elsAccount: string;
|
|
44
|
-
subAccount: string;
|
|
45
|
-
serivceUrl: string;
|
|
46
|
-
} | undefined;
|
|
47
|
-
readonly requiredFileType?: boolean | undefined;
|
|
48
|
-
readonly attrCheck?: 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 itemNumbeValueProp?: 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
|
-
}>;
|
|
67
|
-
handleChangeFiles: (fileResult: RecordString[]) => void;
|
|
68
|
-
auditModalConfirm: Ref<any>;
|
|
69
|
-
auditModalCancel: Ref<any>;
|
|
70
15
|
showBackIcon: boolean;
|
|
71
16
|
handleAnchorClick: (link: {
|
|
72
17
|
title: string;
|
|
73
18
|
href: string;
|
|
74
19
|
}) => void;
|
|
75
|
-
importVisible: Ref<boolean>;
|
|
76
|
-
importProps: Ref<{
|
|
77
|
-
button: {
|
|
78
|
-
title: string;
|
|
79
|
-
key: string | symbol;
|
|
80
|
-
args: PageButtonArgsFunctionType | {
|
|
81
|
-
[x: string]: unknown;
|
|
82
|
-
url: string;
|
|
83
|
-
};
|
|
84
|
-
authorityCode?: string | undefined;
|
|
85
|
-
attrs?: RecordString | undefined;
|
|
86
|
-
icon?: {
|
|
87
|
-
type: string;
|
|
88
|
-
size: number;
|
|
89
|
-
color?: string | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
emit?: boolean | undefined;
|
|
92
|
-
emitKey?: string | undefined;
|
|
93
|
-
showMessage?: boolean | undefined;
|
|
94
|
-
checkBefore?: boolean | undefined;
|
|
95
|
-
confirm?: {
|
|
96
|
-
title: string;
|
|
97
|
-
content: string;
|
|
98
|
-
} | undefined;
|
|
99
|
-
dropdown?: boolean | undefined;
|
|
100
|
-
isExistFrozenSource?: boolean | undefined;
|
|
101
|
-
isExistFrozenSourceUrl?: string | undefined;
|
|
102
|
-
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
103
|
-
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
104
|
-
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
105
|
-
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
106
|
-
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
107
|
-
};
|
|
108
|
-
isEditPage: boolean;
|
|
109
|
-
token: string;
|
|
110
|
-
}>;
|
|
111
|
-
flowVisible: Ref<boolean>;
|
|
112
|
-
flowProps: Ref<{
|
|
113
|
-
button?: {
|
|
114
|
-
title: string;
|
|
115
|
-
key: string | symbol;
|
|
116
|
-
args: PageButtonArgsFunctionType | {
|
|
117
|
-
[x: string]: unknown;
|
|
118
|
-
url: string;
|
|
119
|
-
};
|
|
120
|
-
authorityCode?: string | undefined;
|
|
121
|
-
attrs?: RecordString | undefined;
|
|
122
|
-
icon?: {
|
|
123
|
-
type: string;
|
|
124
|
-
size: number;
|
|
125
|
-
color?: string | undefined;
|
|
126
|
-
} | undefined;
|
|
127
|
-
emit?: boolean | undefined;
|
|
128
|
-
emitKey?: string | undefined;
|
|
129
|
-
showMessage?: boolean | undefined;
|
|
130
|
-
checkBefore?: boolean | undefined;
|
|
131
|
-
confirm?: {
|
|
132
|
-
title: string;
|
|
133
|
-
content: string;
|
|
134
|
-
} | undefined;
|
|
135
|
-
dropdown?: boolean | undefined;
|
|
136
|
-
isExistFrozenSource?: boolean | undefined;
|
|
137
|
-
isExistFrozenSourceUrl?: string | undefined;
|
|
138
|
-
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
139
|
-
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
140
|
-
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
141
|
-
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
142
|
-
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
143
|
-
} | undefined;
|
|
144
|
-
title?: string | undefined;
|
|
145
|
-
onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
|
|
146
|
-
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
147
|
-
visible?: boolean | undefined;
|
|
148
|
-
currentRow?: any;
|
|
149
|
-
token?: string | undefined;
|
|
150
|
-
width?: string | undefined;
|
|
151
|
-
flowId?: string | undefined;
|
|
152
|
-
isDesign?: boolean | undefined;
|
|
153
|
-
workFlowType?: string | undefined;
|
|
154
|
-
}>;
|
|
155
|
-
auditModalProps: Ref<{
|
|
156
|
-
title?: string | undefined;
|
|
157
|
-
form?: {
|
|
158
|
-
[x: string]: unknown;
|
|
159
|
-
type: string;
|
|
160
|
-
label: string;
|
|
161
|
-
fieldName: string;
|
|
162
|
-
required?: string | undefined;
|
|
163
|
-
attrs?: ObjectMap | undefined;
|
|
164
|
-
extends?: ObjectMap | undefined;
|
|
165
|
-
dictCode?: string | undefined;
|
|
166
|
-
options?: any[] | undefined;
|
|
167
|
-
click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
|
|
168
|
-
}[] | undefined;
|
|
169
|
-
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
170
|
-
visible?: boolean | undefined;
|
|
171
|
-
currentRow?: any;
|
|
172
|
-
businessType?: string | undefined;
|
|
173
|
-
token?: string | undefined;
|
|
174
|
-
busAccount?: string | undefined;
|
|
175
|
-
width?: string | undefined;
|
|
176
|
-
taskAction?: string | undefined;
|
|
177
|
-
needFlow?: string | undefined;
|
|
178
|
-
flowIframeUrl?: string | undefined;
|
|
179
|
-
customParams?: Record<string, any> | undefined;
|
|
180
|
-
}>;
|
|
181
20
|
computedCustomSlotFields: ComputedRef<ComputedFormFieldsItem[]>;
|
|
182
21
|
pageTitleName: ComputedRef<string>;
|
|
183
|
-
isDetail: boolean;
|
|
184
22
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
185
23
|
title: {
|
|
186
24
|
type: PropType<string>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { PageButton, LayoutConfig, GroupItem, CurrentRow, ComputedFormFieldsItem } from '../../../edit-page-layout';
|
|
3
|
+
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
title: {
|
|
5
|
+
type: PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
pageButtons: PageButton[];
|
|
10
|
+
layoutConfig: Ref<LayoutConfig>;
|
|
11
|
+
computedGroups: ComputedRef<GroupItem[]>;
|
|
12
|
+
showPageHeader: boolean;
|
|
13
|
+
showLayoutAnchor: boolean;
|
|
14
|
+
currentRow: CurrentRow;
|
|
15
|
+
showBackIcon: boolean;
|
|
16
|
+
handleAnchorClick: (link: {
|
|
17
|
+
title: string;
|
|
18
|
+
href: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
computedCustomSlotFields: ComputedRef<ComputedFormFieldsItem[]>;
|
|
21
|
+
pageTitleName: ComputedRef<string>;
|
|
22
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
23
|
+
title: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
title: string;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _sfc_main;
|
|
@@ -37,9 +37,9 @@ export default function useAuditButtonHook({ currentRow, businessType, layoutExt
|
|
|
37
37
|
flowIframeUrl?: string | undefined;
|
|
38
38
|
customParams?: Record<string, any> | undefined;
|
|
39
39
|
}>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
auditModalVisible: Ref<boolean>;
|
|
41
|
+
approvalModalVisible: Ref<boolean>;
|
|
42
|
+
nodeHistoryModalVisible: Ref<boolean>;
|
|
43
43
|
initAuditForm: (btn: PageButton) => void;
|
|
44
44
|
handleAuditInvalid: (btn: PageButton) => void;
|
|
45
45
|
handleAuditRevocation: (btn: PageButton) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ObjectMap } from '../../list-page-layout';
|
|
1
2
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
+
import type { LayoutConfig, CurrentRow, Role, PageButtonArgsFunctionType, ExposeWithPageButtons, PageButtonPayload, RecordString, ComputedFormFieldsItem, Pattern } from '../../edit-page-layout';
|
|
3
4
|
declare const _sfc_main: DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: PropType<string>;
|
|
@@ -10,7 +11,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
10
11
|
[key: string]: string | boolean;
|
|
11
12
|
}>;
|
|
12
13
|
pattern: Pattern;
|
|
13
|
-
componentName: ComputedRef<
|
|
14
|
+
componentName: ComputedRef<string>;
|
|
14
15
|
layoutConfig: Ref<LayoutConfig>;
|
|
15
16
|
patternNamedSlots: ComputedRef<{
|
|
16
17
|
prepend: string;
|
|
@@ -21,6 +22,171 @@ declare const _sfc_main: DefineComponent<{
|
|
|
21
22
|
patternAppend: string;
|
|
22
23
|
}[]>;
|
|
23
24
|
computedCustomSlotFields: ComputedRef<ComputedFormFieldsItem[]>;
|
|
25
|
+
currentRow: CurrentRow;
|
|
26
|
+
fileVisible: Ref<boolean>;
|
|
27
|
+
fileProps: Ref<{
|
|
28
|
+
readonly data?: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
businessType: string;
|
|
31
|
+
headId: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly 'onUpdate:visible'?: ((value: boolean) => void) | ((value: boolean) => void)[] | undefined;
|
|
34
|
+
readonly visible?: boolean | undefined;
|
|
35
|
+
readonly currentRow?: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
templateNumber: string;
|
|
38
|
+
templateVersion: number;
|
|
39
|
+
templateAccount: string;
|
|
40
|
+
busAccount: string;
|
|
41
|
+
elsAccount: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly action?: string | undefined;
|
|
44
|
+
readonly accept?: string | undefined;
|
|
45
|
+
readonly dictCode?: string | undefined;
|
|
46
|
+
readonly role?: Role | undefined;
|
|
47
|
+
readonly userInfo?: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
elsAccount: string;
|
|
50
|
+
subAccount: string;
|
|
51
|
+
serivceUrl: string;
|
|
52
|
+
} | undefined;
|
|
53
|
+
readonly property?: string | undefined;
|
|
54
|
+
readonly requiredFileType?: boolean | undefined;
|
|
55
|
+
readonly attrCheck?: string | undefined;
|
|
56
|
+
readonly limitSize?: number | undefined;
|
|
57
|
+
readonly acceptDictCode?: string | undefined;
|
|
58
|
+
readonly maxCount?: number | undefined;
|
|
59
|
+
readonly isOss?: boolean | undefined;
|
|
60
|
+
readonly isGridUpload?: boolean | undefined;
|
|
61
|
+
readonly itemNumberKey?: string | undefined;
|
|
62
|
+
readonly itemNumberLabel?: string | undefined;
|
|
63
|
+
readonly itemNumbeValueProp?: string | undefined;
|
|
64
|
+
readonly itemNumberDefaultValue?: string | undefined;
|
|
65
|
+
readonly itemNumberSelectIndex?: boolean | undefined;
|
|
66
|
+
readonly disabledItemNumber?: boolean | undefined;
|
|
67
|
+
readonly itemInfo?: RecordString[] | undefined;
|
|
68
|
+
readonly fileTypeList?: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
title: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
readonly actionRoutePath?: string | undefined;
|
|
74
|
+
readonly sourceNumberType?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
handleChangeFiles: (fileResult: RecordString[]) => void;
|
|
77
|
+
importVisible: Ref<boolean>;
|
|
78
|
+
importProps: Ref<{
|
|
79
|
+
button: {
|
|
80
|
+
title: string;
|
|
81
|
+
i18nKey?: string | undefined;
|
|
82
|
+
key: string | symbol;
|
|
83
|
+
args: PageButtonArgsFunctionType | {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
url: string;
|
|
86
|
+
};
|
|
87
|
+
authorityCode?: string | undefined;
|
|
88
|
+
attrs?: RecordString | undefined;
|
|
89
|
+
icon?: {
|
|
90
|
+
type: string;
|
|
91
|
+
size: number;
|
|
92
|
+
color?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
emit?: boolean | undefined;
|
|
95
|
+
emitKey?: string | undefined;
|
|
96
|
+
showMessage?: boolean | undefined;
|
|
97
|
+
checkBefore?: boolean | undefined;
|
|
98
|
+
confirm?: {
|
|
99
|
+
title: string;
|
|
100
|
+
content: string;
|
|
101
|
+
} | undefined;
|
|
102
|
+
dropdown?: boolean | undefined;
|
|
103
|
+
isExistFrozenSource?: boolean | undefined;
|
|
104
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
105
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
106
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
107
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
108
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
109
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
110
|
+
};
|
|
111
|
+
isEditPage: boolean;
|
|
112
|
+
token: string;
|
|
113
|
+
}>;
|
|
114
|
+
auditModalVisible: Ref<boolean>;
|
|
115
|
+
approvalModalVisible: Ref<boolean>;
|
|
116
|
+
nodeHistoryModalVisible: Ref<boolean>;
|
|
117
|
+
auditModalProps: Ref<{
|
|
118
|
+
title?: string | undefined;
|
|
119
|
+
form?: {
|
|
120
|
+
[x: string]: unknown;
|
|
121
|
+
type: string;
|
|
122
|
+
label: string;
|
|
123
|
+
fieldName: string;
|
|
124
|
+
required?: string | undefined;
|
|
125
|
+
attrs?: ObjectMap | undefined;
|
|
126
|
+
extends?: ObjectMap | undefined;
|
|
127
|
+
dictCode?: string | undefined;
|
|
128
|
+
options?: any[] | undefined;
|
|
129
|
+
click?: ((args: object, formState?: ObjectMap | undefined) => void) | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
132
|
+
visible?: boolean | undefined;
|
|
133
|
+
currentRow?: any;
|
|
134
|
+
businessType?: string | undefined;
|
|
135
|
+
token?: string | undefined;
|
|
136
|
+
busAccount?: string | undefined;
|
|
137
|
+
width?: string | undefined;
|
|
138
|
+
taskAction?: string | undefined;
|
|
139
|
+
needFlow?: string | undefined;
|
|
140
|
+
flowIframeUrl?: string | undefined;
|
|
141
|
+
customParams?: Record<string, any> | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
auditModalConfirm: Ref<any>;
|
|
144
|
+
auditModalCancel: Ref<any>;
|
|
145
|
+
flowVisible: Ref<boolean>;
|
|
146
|
+
flowProps: Ref<{
|
|
147
|
+
button?: {
|
|
148
|
+
title: string;
|
|
149
|
+
i18nKey?: string | undefined;
|
|
150
|
+
key: string | symbol;
|
|
151
|
+
args: PageButtonArgsFunctionType | {
|
|
152
|
+
[x: string]: unknown;
|
|
153
|
+
url: string;
|
|
154
|
+
};
|
|
155
|
+
authorityCode?: string | undefined;
|
|
156
|
+
attrs?: RecordString | undefined;
|
|
157
|
+
icon?: {
|
|
158
|
+
type: string;
|
|
159
|
+
size: number;
|
|
160
|
+
color?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
emit?: boolean | undefined;
|
|
163
|
+
emitKey?: string | undefined;
|
|
164
|
+
showMessage?: boolean | undefined;
|
|
165
|
+
checkBefore?: boolean | undefined;
|
|
166
|
+
confirm?: {
|
|
167
|
+
title: string;
|
|
168
|
+
content: string;
|
|
169
|
+
} | undefined;
|
|
170
|
+
dropdown?: boolean | undefined;
|
|
171
|
+
isExistFrozenSource?: boolean | undefined;
|
|
172
|
+
isExistFrozenSourceUrl?: string | undefined;
|
|
173
|
+
isExistFrozenSourceParams?: ((pageData: RecordString) => RecordString) | undefined;
|
|
174
|
+
disabled?: ((pageData: RecordString) => boolean) | undefined;
|
|
175
|
+
handleBefore?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
176
|
+
handleAfter?: ((args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>) | undefined;
|
|
177
|
+
callback?: ((payload: PageButtonPayload) => void) | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
title?: string | undefined;
|
|
180
|
+
onChange?: ((args: any) => void) | ((args: any) => void)[] | undefined;
|
|
181
|
+
'onUpdate:visible'?: ((value: string) => void) | ((value: string) => void)[] | undefined;
|
|
182
|
+
visible?: boolean | undefined;
|
|
183
|
+
currentRow?: any;
|
|
184
|
+
token?: string | undefined;
|
|
185
|
+
width?: string | undefined;
|
|
186
|
+
flowId?: string | undefined;
|
|
187
|
+
isDesign?: boolean | undefined;
|
|
188
|
+
workFlowType?: string | undefined;
|
|
189
|
+
}>;
|
|
24
190
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
25
191
|
title: {
|
|
26
192
|
type: PropType<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
export default function useLayoutPattern(
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { LayoutPatternReturnType } from './layout-pattern-types';
|
|
3
|
+
export default function useLayoutPattern(componentName: ComputedRef<string>): LayoutPatternReturnType;
|
|
@@ -94,7 +94,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
94
94
|
pageData: {
|
|
95
95
|
[x: string]: any;
|
|
96
96
|
onlyShowNav?: boolean | undefined;
|
|
97
|
-
isAggregate?: "
|
|
97
|
+
isAggregate?: "0" | "1" | undefined;
|
|
98
98
|
isUseLocalColumns?: boolean | undefined;
|
|
99
99
|
localColumns?: {
|
|
100
100
|
[x: string]: any;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
import type { VxeColumnSlotTypes, VxeTableDataRow, SlotVNodeType, VxeColumnPropTypes, VxeTablePropTypes, VxeTooltipPropTypes, VxeTableDefines } from 'vxe-table';
|
|
3
4
|
import { GridColumn } from '../../../list-page-layout-types';
|
|
4
5
|
declare const _sfc_main: DefineComponent<{}, {
|
|
5
6
|
columnGrid: Ref<any>;
|
|
7
|
+
srmI18n: SrmI18n;
|
|
6
8
|
busAccount: Ref<string>;
|
|
7
9
|
open: (columnCode: string) => void;
|
|
8
10
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectMap } from '../../../list-page-layout-types';
|
|
2
|
-
export default function useGridSlots(): {
|
|
1
|
+
import { ObjectMap, SrmI18n } from '../../../list-page-layout-types';
|
|
2
|
+
export default function useGridSlots(srmI18n: SrmI18n): {
|
|
3
3
|
dragSlots: () => {
|
|
4
4
|
default: () => JSX.Element[];
|
|
5
5
|
header: () => JSX.Element[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
import { ButtonItem } from '../../../list-page-layout-types';
|
|
3
4
|
declare const _sfc_main: DefineComponent<{}, {
|
|
4
5
|
importUrl: () => string;
|
|
6
|
+
srmI18n: SrmI18n;
|
|
5
7
|
open: (button: ButtonItem) => void;
|
|
6
8
|
stepChange: (current: never) => void;
|
|
7
9
|
beforeUpload: (file: any) => false | undefined;
|
|
@@ -1,48 +1,52 @@
|
|
|
1
|
+
type SrmI18n = (i18nKey: string, defaultValue: string, account?: string | number) => string;
|
|
1
2
|
export declare const tabs: string[];
|
|
2
3
|
export declare const operaUrl = "/log/queryOptHisList";
|
|
3
4
|
export declare const auditUrl = "/elsUflo/audit/auditHislist";
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export declare function useMock(srmI18n: SrmI18n): {
|
|
6
|
+
operaPagerConfig: {
|
|
7
|
+
total: number;
|
|
8
|
+
currentPage: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
align: string;
|
|
11
|
+
pageSizes: number[];
|
|
12
|
+
layouts: string[];
|
|
13
|
+
perfect: boolean;
|
|
14
|
+
};
|
|
15
|
+
auditPagerConfig: {
|
|
16
|
+
total: number;
|
|
17
|
+
currentPage: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
align: string;
|
|
20
|
+
pageSizes: number[];
|
|
21
|
+
layouts: string[];
|
|
22
|
+
perfect: boolean;
|
|
23
|
+
};
|
|
24
|
+
operaColumns: ({
|
|
25
|
+
type: string;
|
|
26
|
+
width: number;
|
|
27
|
+
title: string;
|
|
28
|
+
field?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
title: string;
|
|
31
|
+
field: string;
|
|
32
|
+
width: number;
|
|
33
|
+
type?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
title: string;
|
|
36
|
+
field: string;
|
|
37
|
+
type?: undefined;
|
|
38
|
+
width?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
auditColumns: ({
|
|
41
|
+
type: string;
|
|
42
|
+
width: number;
|
|
43
|
+
title: string;
|
|
44
|
+
field?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
field: string;
|
|
47
|
+
title: string;
|
|
48
|
+
width: number;
|
|
49
|
+
type?: undefined;
|
|
50
|
+
})[];
|
|
12
51
|
};
|
|
13
|
-
export
|
|
14
|
-
total: number;
|
|
15
|
-
currentPage: number;
|
|
16
|
-
pageSize: number;
|
|
17
|
-
align: string;
|
|
18
|
-
pageSizes: number[];
|
|
19
|
-
layouts: string[];
|
|
20
|
-
perfect: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare const operaColumns: ({
|
|
23
|
-
type: string;
|
|
24
|
-
width: number;
|
|
25
|
-
title: string;
|
|
26
|
-
field?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
title: string;
|
|
29
|
-
field: string;
|
|
30
|
-
width: number;
|
|
31
|
-
type?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
title: string;
|
|
34
|
-
field: string;
|
|
35
|
-
type?: undefined;
|
|
36
|
-
width?: undefined;
|
|
37
|
-
})[];
|
|
38
|
-
export declare const auditColumns: ({
|
|
39
|
-
type: string;
|
|
40
|
-
width: number;
|
|
41
|
-
title: string;
|
|
42
|
-
field?: undefined;
|
|
43
|
-
} | {
|
|
44
|
-
field: string;
|
|
45
|
-
title: string;
|
|
46
|
-
width: number;
|
|
47
|
-
type?: undefined;
|
|
48
|
-
})[];
|
|
52
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, VNode, RendererNode, RendererElement, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
import type { SizeType, VxeTableDataRow, VxeTablePropTypes, VxeColumnPropTypes, VxeTooltipPropTypes, VxeColumnSlotTypes, VxeTableDefines, SlotVNodeType, VxeTableConstructor, VxeTablePrivateMethods, VxeGridConstructor, VxeTableProDefines, VxePagerPropTypes, VxeGridPropTypes, VxeButtonPropTypes, VxeToolbarPropTypes, VxeFormPropTypes, VxeFormItemPropTypes, VxeFormItemProps, FormItemTitleRenderParams, FormItemContentRenderParams, VxePagerEvents } from 'vxe-table';
|
|
3
4
|
import { ObjectMap } from '../../../list-page-layout-types';
|
|
4
5
|
declare const _sfc_main: DefineComponent<{}, {
|
|
5
6
|
open: (row: ObjectMap) => void;
|
|
7
|
+
srmI18n: SrmI18n;
|
|
6
8
|
handleOperaPageChange: VxePagerEvents.PageChange;
|
|
7
9
|
handleAuditPageChange: VxePagerEvents.PageChange;
|
|
8
10
|
auditOptions: {
|
|
@@ -5170,7 +5172,6 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
5170
5172
|
title: Ref<string>;
|
|
5171
5173
|
operaUrl: Ref<string>;
|
|
5172
5174
|
auditUrl: Ref<string>;
|
|
5173
|
-
tabs: Ref<string[]>;
|
|
5174
5175
|
operaTableData: Ref<never[]>;
|
|
5175
5176
|
auditTableData: Ref<never[]>;
|
|
5176
5177
|
currentRow: Ref<{}>;
|
package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, PropType, Ref, ShallowRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
|
|
2
3
|
import type { PageData, TabsData, ApiUrls, GridColumn, ObjectMap, OptColumnListItem, OptionsButtonsCallBack } from '../../list-page-layout-types';
|
|
3
4
|
import type { VxeTableDataRow, VxeGridListeners, VxeGridProps } from 'vxe-table';
|
|
@@ -50,6 +51,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
50
51
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
51
52
|
cssVarBlockName: (name: string) => string;
|
|
52
53
|
};
|
|
54
|
+
srmI18n: SrmI18n;
|
|
53
55
|
pageData: PageData;
|
|
54
56
|
gridConfig: ComputedRef<VxeGridProps<VxeTableDataRow>>;
|
|
55
57
|
computedColumns: ComputedRef<VxeGridPropTypes.Columns<VxeTableDataRow>>;
|
package/dist/lib/components/list-page-layout/src/components/list-content-buttons/events-helper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonItem } from '../../list-page-layout-types';
|
|
1
|
+
import { ButtonItem, SrmI18n } from '../../list-page-layout-types';
|
|
2
2
|
export declare const handleButtonShow: (btn: any) => void;
|
|
3
3
|
export declare const getAuthCodeBtns: (list: any) => any;
|
|
4
|
-
export declare const useEvents: (props: any) => {
|
|
4
|
+
export declare const useEvents: (props: any, srmI18n: SrmI18n) => {
|
|
5
5
|
handleClick: (btn: ButtonItem) => void;
|
|
6
6
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
3
|
import { ButtonConfig, ButtonItem, ToolsConfig, ToolsButtonItem } from '../../list-page-layout-types';
|
|
3
4
|
declare const _sfc_main: DefineComponent<{
|
|
@@ -17,6 +18,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
17
18
|
toolsButList: ComputedRef<ToolsButtonItem[]>;
|
|
18
19
|
foldBtnList: ComputedRef<ButtonItem[]>;
|
|
19
20
|
isObject: (value?: any) => value is object;
|
|
21
|
+
srmI18n: SrmI18n;
|
|
20
22
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
21
23
|
buttonConfig: {
|
|
22
24
|
type: PropType<ButtonConfig>;
|
package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { UseNamespace } from '../../../../../../shared/hooks/use-namespace';
|
|
2
|
+
import type { SrmI18n } from '../../../../../../../utils/type';
|
|
2
3
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
4
|
import type { PageData, QueryFormItem, ObjectMap, QueryFormItemSelect, ISelectArgs } from '../../../../list-page-layout-types';
|
|
4
5
|
declare const _sfc_main: DefineComponent<{}, {
|
|
5
6
|
pageData: PageData;
|
|
7
|
+
srmI18n: SrmI18n;
|
|
6
8
|
form: QueryFormItem[];
|
|
7
9
|
formState: ObjectMap;
|
|
8
10
|
isExpand: Ref<boolean>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../../../utils/type';
|
|
1
2
|
import type { UseNamespace } from '../../../../../../shared/hooks/use-namespace';
|
|
2
3
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
4
|
declare const _sfc_main: DefineComponent<{}, {
|
|
4
5
|
ns: UseNamespace;
|
|
6
|
+
srmI18n: SrmI18n;
|
|
5
7
|
appList: Ref<any>;
|
|
6
8
|
showNumber: Ref<number>;
|
|
7
9
|
setNav: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SrmI18n } from '../../../../../../../utils/type';
|
|
1
2
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
import { ObjectMap, QueryParamsItem, SearchPrompt, SearchTreeDataItem } from '../../../../list-page-layout-types';
|
|
3
4
|
declare const _sfc_main: DefineComponent<{
|
|
@@ -27,6 +28,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
27
28
|
filterOption: (input: string, option: any) => boolean;
|
|
28
29
|
show: (flag: boolean) => void;
|
|
29
30
|
busAccount: Ref<string>;
|
|
31
|
+
srmI18n: SrmI18n;
|
|
30
32
|
formatTitle({ rows, fieldListItem }: {
|
|
31
33
|
rows: ObjectMap;
|
|
32
34
|
fieldListItem: QueryParamsItem;
|