@qqt-product/ui 7.0.1 → 8.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.
Files changed (43) hide show
  1. package/dist/index.es.js +25005 -23833
  2. package/dist/index.umd.js +114 -112
  3. package/dist/lib/components/currency/index.d.ts +36 -48
  4. package/dist/lib/components/currency/src/currency-type.d.ts +15 -21
  5. package/dist/lib/components/currency/src/currency.vue.d.ts +37 -49
  6. package/dist/lib/components/currency/src/use-currency.d.ts +2 -2
  7. package/dist/lib/components/detail-form/index.d.ts +1 -2
  8. package/dist/lib/components/detail-form/src/detail-form.vue.d.ts +1 -2
  9. package/dist/lib/components/detail-grid/index.d.ts +3 -2
  10. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +3 -2
  11. package/dist/lib/components/detail-page-layout/index.d.ts +1 -1
  12. package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +2 -2
  13. package/dist/lib/components/edit-form/index.d.ts +1 -1
  14. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +1 -1
  15. package/dist/lib/components/edit-grid/index.d.ts +1 -1
  16. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +1 -1
  17. package/dist/lib/components/edit-page-layout/index.d.ts +1 -1
  18. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +14 -1
  19. package/dist/lib/components/edit-page-layout/src/edit-page-layout.vue.d.ts +2 -2
  20. package/dist/lib/components/edit-page-layout/src/types.d.ts +1 -1
  21. package/dist/lib/components/import-modal/src/import-modal-types.d.ts +4 -0
  22. package/dist/lib/components/index.d.ts +2 -2
  23. package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
  24. package/dist/lib/components/layout/src/header/navRight/customPerson.vue.d.ts +2 -2
  25. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
  26. package/dist/lib/components/layout-pattern/index.d.ts +2 -1
  27. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +2 -1
  28. package/dist/lib/components/link/index.d.ts +126 -0
  29. package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +2 -1
  30. package/dist/lib/components/page-layout/src/constant/symbol.d.ts +1 -1
  31. package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +1 -1
  32. package/dist/lib/components/upload-file/index.d.ts +100 -4
  33. package/dist/lib/components/upload-file/src/hook/use-operation-column-button-hook.d.ts +3 -0
  34. package/dist/lib/components/upload-file/src/upload-file-types.d.ts +13 -0
  35. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +100 -4
  36. package/dist/lib/components/useChart/index.d.ts +1 -0
  37. package/dist/lib/utils/event.d.ts +4 -4
  38. package/dist/lib/utils/use-create-link-hook.d.ts +1 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +12 -8
  41. package/dist/lib/components/coutdown/index.d.ts +0 -84
  42. package/dist/lib/components/coutdown/src/coutdown.d.ts +0 -48
  43. package/dist/lib/components/coutdown/src/coutdown.vue.d.ts +0 -81
@@ -8,6 +8,7 @@ import * as QCascader from './cascader';
8
8
  import * as QBreadcrumb from './breadcrumb';
9
9
  import * as QCountdown from './countdown';
10
10
  import * as QEmpty from './empty';
11
+ import * as QLink from './link';
11
12
  import * as QCollapseTransition from './collapse-transition';
12
13
  import * as QFieldSelectModal from './field-select-modal';
13
14
  import * as QSelectModal from './select-modal';
@@ -35,11 +36,10 @@ import * as QCurrency from './currency';
35
36
  import * as QUploadImage from './upload-image';
36
37
  import * as QUploadFile from './upload-file';
37
38
  import * as QUploadFileVxe from './upload-file-vxe';
38
- import * as QCoutdown from './coutdown/index';
39
39
  import * as QCardListLayout from './card-list-layout/index';
40
40
  import * as QSelectTemplate from './select-template/index';
41
41
  import * as QImportModal from './import-modal/index';
42
42
  import * as QRelationGraph from './relation-graph/index';
43
43
  import * as QAuditModal from './audit-modal/index';
44
44
  import * as QRichEditorModel from './rich-editor-model/index';
45
- export { QLayout, QSwitch, QSelect, QMenu, QTreeSelect, QVxeSelect, QCascader, QBreadcrumb, QCountdown, QEmpty, QCollapseTransition, QEditPageLayout, QDetailPageLayout, QPageLayout, QLayoutPattern, QLayoutButtons, QLayoutAnchor, QEditForm, QDetailForm, QEditGrid, QDetailGrid, QItemWrap, QListLayout, QRadio, QFieldSelectModal, QCodeEditorModel, QCheckBox, QCurrency, QSelectModal, QUploadImage, QRemoteSelect, QEditor, QSaleTemplate, QLadderPrice, FlowViewModal, QUploadFile, QCoutdown, QCardListLayout, QUploadFileVxe, QSelectTemplate, QImportModal, QRelationGraph, QAuditModal, QRichEditorModel, };
45
+ export { QLayout, QSwitch, QSelect, QMenu, QTreeSelect, QVxeSelect, QCascader, QBreadcrumb, QCountdown, QEmpty, QLink, QCollapseTransition, QEditPageLayout, QDetailPageLayout, QPageLayout, QLayoutPattern, QLayoutButtons, QLayoutAnchor, QEditForm, QDetailForm, QEditGrid, QDetailGrid, QItemWrap, QListLayout, QRadio, QFieldSelectModal, QCodeEditorModel, QCheckBox, QCurrency, QSelectModal, QUploadImage, QRemoteSelect, QEditor, QSaleTemplate, QLadderPrice, FlowViewModal, QUploadFile, QCardListLayout, QUploadFileVxe, QSelectTemplate, QImportModal, QRelationGraph, QAuditModal, QRichEditorModel, };
@@ -191,7 +191,7 @@ declare const _sfc_main: DefineComponent<{}, {
191
191
  personalSetting: () => void;
192
192
  handleLogout: () => void;
193
193
  nickname: Ref<string>;
194
- avatarUrl: Ref<string>;
194
+ avatarUrl: ComputedRef<string>;
195
195
  handlePersonalSettings: () => void;
196
196
  readonly SettingOutlined: SettingOutlinedIconType;
197
197
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -1,7 +1,7 @@
1
1
  import type { LogoutOutlinedIconType } from '@ant-design/icons-vue/lib/icons/LogoutOutlined';
2
2
  import type { SettingOutlinedIconType } from '@ant-design/icons-vue/lib/icons/SettingOutlined';
3
3
  import type { SrmI18n } from '../../../../../utils/type';
4
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  declare const _sfc_main: DefineComponent<{}, {
6
6
  srmI18n: SrmI18n;
7
7
  userInfo: {
@@ -18,7 +18,7 @@ declare const _sfc_main: DefineComponent<{}, {
18
18
  personalSetting: () => void;
19
19
  handleLogout: () => void;
20
20
  nickname: Ref<string>;
21
- avatarUrl: Ref<string>;
21
+ avatarUrl: ComputedRef<string>;
22
22
  handlePersonalSettings: () => void;
23
23
  readonly SettingOutlined: SettingOutlinedIconType;
24
24
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -139,7 +139,7 @@ declare const _sfc_main: DefineComponent<{}, {
139
139
  personalSetting: () => void;
140
140
  handleLogout: () => void;
141
141
  nickname: Ref<string>;
142
- avatarUrl: Ref<string>;
142
+ avatarUrl: ComputedRef<string>;
143
143
  handlePersonalSettings: () => void;
144
144
  readonly SettingOutlined: SettingOutlinedIconType;
145
145
  readonly LogoutOutlined: LogoutOutlinedIconType;
@@ -48,13 +48,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
48
48
  readonly action?: string | undefined;
49
49
  readonly accept?: string | undefined;
50
50
  readonly dictCode?: string | undefined;
51
- readonly role?: Role | undefined;
52
51
  readonly userInfo?: {
53
52
  [x: string]: unknown;
54
53
  elsAccount: string;
55
54
  subAccount: string;
56
55
  serivceUrl: string;
57
56
  } | undefined;
57
+ readonly role?: Role | undefined;
58
58
  readonly property?: string | undefined;
59
59
  readonly requiredFileType?: boolean | undefined;
60
60
  readonly attrCheck?: string | undefined;
@@ -77,6 +77,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
77
77
  }[] | undefined;
78
78
  readonly actionRoutePath?: string | undefined;
79
79
  readonly sourceNumberType?: string | undefined;
80
+ readonly onConfirmBeforeUpload?: Function | undefined;
80
81
  }>;
81
82
  handleChangeFiles: (fileResult: RecordString[]) => void;
82
83
  importVisible: Ref<boolean>;
@@ -43,13 +43,13 @@ declare const _sfc_main: DefineComponent<{
43
43
  readonly action?: string | undefined;
44
44
  readonly accept?: string | undefined;
45
45
  readonly dictCode?: string | undefined;
46
- readonly role?: Role | undefined;
47
46
  readonly userInfo?: {
48
47
  [x: string]: unknown;
49
48
  elsAccount: string;
50
49
  subAccount: string;
51
50
  serivceUrl: string;
52
51
  } | undefined;
52
+ readonly role?: Role | undefined;
53
53
  readonly property?: string | undefined;
54
54
  readonly requiredFileType?: boolean | undefined;
55
55
  readonly attrCheck?: string | undefined;
@@ -72,6 +72,7 @@ declare const _sfc_main: DefineComponent<{
72
72
  }[] | undefined;
73
73
  readonly actionRoutePath?: string | undefined;
74
74
  readonly sourceNumberType?: string | undefined;
75
+ readonly onConfirmBeforeUpload?: Function | undefined;
75
76
  }>;
76
77
  handleChangeFiles: (fileResult: RecordString[]) => void;
77
78
  importVisible: Ref<boolean>;
@@ -0,0 +1,126 @@
1
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
3
+ import type { RecordString, FormFieldsItem, ColumnItem, GroupType } from '../edit-page-layout';
4
+ declare const linkProps: {
5
+ readonly pageData: {
6
+ readonly type: PropType<RecordString>;
7
+ readonly default: () => {};
8
+ };
9
+ readonly row: {
10
+ readonly type: PropType<RecordString>;
11
+ readonly default: () => {};
12
+ };
13
+ readonly formField: {
14
+ readonly type: PropType<FormFieldsItem>;
15
+ readonly default: () => {};
16
+ };
17
+ readonly columnField: {
18
+ readonly type: PropType<ColumnItem>;
19
+ readonly default: () => {};
20
+ };
21
+ readonly groupType: {
22
+ readonly type: PropType<GroupType>;
23
+ readonly default: "head";
24
+ };
25
+ };
26
+ export type LinkProps = ExtractPropTypes<typeof linkProps>;
27
+ declare const Link: DefineComponent<{
28
+ readonly pageData: {
29
+ readonly type: PropType<RecordString>;
30
+ readonly default: () => {};
31
+ };
32
+ readonly row: {
33
+ readonly type: PropType<RecordString>;
34
+ readonly default: () => {};
35
+ };
36
+ readonly formField: {
37
+ readonly type: PropType<FormFieldsItem>;
38
+ readonly default: () => {};
39
+ };
40
+ readonly columnField: {
41
+ readonly type: PropType<ColumnItem>;
42
+ readonly default: () => {};
43
+ };
44
+ readonly groupType: {
45
+ readonly type: PropType<GroupType>;
46
+ readonly default: "head";
47
+ };
48
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ readonly pageData: {
50
+ readonly type: PropType<RecordString>;
51
+ readonly default: () => {};
52
+ };
53
+ readonly row: {
54
+ readonly type: PropType<RecordString>;
55
+ readonly default: () => {};
56
+ };
57
+ readonly formField: {
58
+ readonly type: PropType<FormFieldsItem>;
59
+ readonly default: () => {};
60
+ };
61
+ readonly columnField: {
62
+ readonly type: PropType<ColumnItem>;
63
+ readonly default: () => {};
64
+ };
65
+ readonly groupType: {
66
+ readonly type: PropType<GroupType>;
67
+ readonly default: "head";
68
+ };
69
+ }>>, {
70
+ readonly row: RecordString;
71
+ readonly pageData: RecordString;
72
+ readonly groupType: GroupType;
73
+ readonly formField: FormFieldsItem;
74
+ readonly columnField: ColumnItem;
75
+ }, {}>;
76
+ export { Link };
77
+ declare const _default: SFCWithInstall<DefineComponent<{
78
+ readonly pageData: {
79
+ readonly type: PropType<RecordString>;
80
+ readonly default: () => {};
81
+ };
82
+ readonly row: {
83
+ readonly type: PropType<RecordString>;
84
+ readonly default: () => {};
85
+ };
86
+ readonly formField: {
87
+ readonly type: PropType<FormFieldsItem>;
88
+ readonly default: () => {};
89
+ };
90
+ readonly columnField: {
91
+ readonly type: PropType<ColumnItem>;
92
+ readonly default: () => {};
93
+ };
94
+ readonly groupType: {
95
+ readonly type: PropType<GroupType>;
96
+ readonly default: "head";
97
+ };
98
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
99
+ readonly pageData: {
100
+ readonly type: PropType<RecordString>;
101
+ readonly default: () => {};
102
+ };
103
+ readonly row: {
104
+ readonly type: PropType<RecordString>;
105
+ readonly default: () => {};
106
+ };
107
+ readonly formField: {
108
+ readonly type: PropType<FormFieldsItem>;
109
+ readonly default: () => {};
110
+ };
111
+ readonly columnField: {
112
+ readonly type: PropType<ColumnItem>;
113
+ readonly default: () => {};
114
+ };
115
+ readonly groupType: {
116
+ readonly type: PropType<GroupType>;
117
+ readonly default: "head";
118
+ };
119
+ }>>, {
120
+ readonly row: RecordString;
121
+ readonly pageData: RecordString;
122
+ readonly groupType: GroupType;
123
+ readonly formField: FormFieldsItem;
124
+ readonly columnField: ColumnItem;
125
+ }, {}>>;
126
+ export default _default;
@@ -3,11 +3,12 @@ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedCo
3
3
  import type { VxeColumnSlotTypes, VxeTableDataRow, SlotVNodeType, VxeColumnPropTypes, VxeTablePropTypes, VxeTooltipPropTypes, VxeTableDefines } from 'vxe-table';
4
4
  import { GridColumn } from '../../../list-page-layout-types';
5
5
  declare const _sfc_main: DefineComponent<{}, {
6
+ columnGroupOptions: Ref<never[]>;
6
7
  columnGrid: Ref<any>;
7
8
  srmI18n: SrmI18n;
8
9
  busAccount: Ref<string>;
9
10
  open: (columnCode: string) => void;
10
- close: () => void;
11
+ close: typeof close;
11
12
  setFrozenColumn<T extends GridColumn>(listArry: T[]): T[];
12
13
  getColumnsList(columnCode: string): void;
13
14
  getFieldColorsData(item: any): void;
@@ -23,7 +23,7 @@ export declare const SYMBOL_CUSTOM_CLICK: unique symbol;
23
23
  export declare const SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK: unique symbol;
24
24
  export declare const SYMBOL_UPLOAD: unique symbol;
25
25
  export declare const SYMBOL_UPLOAD_GRID: unique symbol;
26
- export declare const SYMBOL_CANCELAUDIT: unique symbol;
26
+ export declare const SYMBOL_CANCEL_AUDIT: unique symbol;
27
27
  export declare const SYMBOL_DOWNLOAD_ALL: unique symbol;
28
28
  export declare const SYMBOL_REMOVE_ALL: unique symbol;
29
29
  export declare const SYMBOL_CHECKBOX_CHANGE: unique symbol;
@@ -3,7 +3,7 @@ import type { UsePromiseStepPayload, ExposeWithPageButtons, RecordString, PageBu
3
3
  export default function usePromiseStep<T extends UsePromiseStepPayload>(payload: T): {
4
4
  customLoading: Readonly<Ref<boolean>>;
5
5
  normalizeStepPromiseMethod: <T_1 extends ExposeWithPageButtons>(key: string | symbol) => ((args: T_1) => Promise<ExposeWithPageButtons>)[];
6
- handleResetValidateStatus: (btn: PageButton) => void;
6
+ handleResetValidateStatus: () => void;
7
7
  handleValidateResult: ({ result, button }: ValidateResult) => void;
8
8
  stepSave: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
9
9
  stepAdd: (args: ExposeWithPageButtons) => Promise<ExposeWithPageButtons>;
@@ -1,6 +1,6 @@
1
1
  import type { SrmI18n } from '../../utils/type';
2
2
  import type { UploadFile } from 'ant-design-vue';
3
- import type { FileType } from 'ant-design-vue/lib/upload/interface';
3
+ import type { UploadFileStatus, FileType } from 'ant-design-vue/lib/upload/interface';
4
4
  import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
5
5
  import type { RecordString } from '../select-modal';
6
6
  import type { Data, FileTypeList } from './src/upload-file-types';
@@ -122,13 +122,104 @@ declare const _default: SFCWithInstall<DefineComponent<{
122
122
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
123
123
  default: unknown;
124
124
  };
125
+ readonly onConfirmBeforeUpload: {
126
+ readonly type: FunctionConstructor;
127
+ readonly default: null;
128
+ };
125
129
  }, {
126
130
  validateInfos: validateInfos;
127
131
  limitSize: Ref<number>;
128
- accept: Ref<string>;
132
+ acceptNew: Ref<string>;
129
133
  handleConfirm: () => void;
130
134
  handleCancel: () => void;
131
- fileData: Record<string, any>;
135
+ fileData: {
136
+ [x: string]: unknown;
137
+ [x: number]: unknown;
138
+ fileType: string;
139
+ fileList: {
140
+ uid: string;
141
+ size?: number | undefined;
142
+ name: string;
143
+ fileName?: string | undefined;
144
+ lastModified?: number | undefined;
145
+ lastModifiedDate?: {
146
+ toString: () => string;
147
+ toDateString: () => string;
148
+ toTimeString: () => string;
149
+ toLocaleString: {
150
+ (): string;
151
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
152
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
153
+ };
154
+ toLocaleDateString: {
155
+ (): string;
156
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
157
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
158
+ };
159
+ toLocaleTimeString: {
160
+ (): string;
161
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
162
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
163
+ };
164
+ valueOf: () => number;
165
+ getTime: () => number;
166
+ getFullYear: () => number;
167
+ getUTCFullYear: () => number;
168
+ getMonth: () => number;
169
+ getUTCMonth: () => number;
170
+ getDate: () => number;
171
+ getUTCDate: () => number;
172
+ getDay: () => number;
173
+ getUTCDay: () => number;
174
+ getHours: () => number;
175
+ getUTCHours: () => number;
176
+ getMinutes: () => number;
177
+ getUTCMinutes: () => number;
178
+ getSeconds: () => number;
179
+ getUTCSeconds: () => number;
180
+ getMilliseconds: () => number;
181
+ getUTCMilliseconds: () => number;
182
+ getTimezoneOffset: () => number;
183
+ setTime: (time: number) => number;
184
+ setMilliseconds: (ms: number) => number;
185
+ setUTCMilliseconds: (ms: number) => number;
186
+ setSeconds: (sec: number, ms?: number | undefined) => number;
187
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
188
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
189
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
190
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
191
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
192
+ setDate: (date: number) => number;
193
+ setUTCDate: (date: number) => number;
194
+ setMonth: (month: number, date?: number | undefined) => number;
195
+ setUTCMonth: (month: number, date?: number | undefined) => number;
196
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
197
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
198
+ toUTCString: () => string;
199
+ toISOString: () => string;
200
+ toJSON: (key?: any) => string;
201
+ [Symbol.toPrimitive]: {
202
+ (hint: "default"): string;
203
+ (hint: "string"): string;
204
+ (hint: "number"): number;
205
+ (hint: string): string | number;
206
+ };
207
+ } | undefined;
208
+ url?: string | undefined;
209
+ status?: UploadFileStatus | undefined;
210
+ percent?: number | undefined;
211
+ thumbUrl?: string | undefined;
212
+ originFileObj?: FileType | undefined;
213
+ response?: unknown;
214
+ error?: any;
215
+ linkProps?: any;
216
+ type?: string | undefined;
217
+ xhr?: unknown;
218
+ preview?: string | undefined;
219
+ }[] | undefined;
220
+ itemNumber: string;
221
+ fileBelong: string;
222
+ };
132
223
  itemNumberLabel: Ref<string>;
133
224
  itemNumbeValueProp: Ref<string>;
134
225
  property: Ref<string>;
@@ -259,6 +350,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
259
350
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
260
351
  default: unknown;
261
352
  };
353
+ readonly onConfirmBeforeUpload: {
354
+ readonly type: FunctionConstructor;
355
+ readonly default: null;
356
+ };
262
357
  }>> & {
263
358
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
264
359
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -270,8 +365,8 @@ declare const _default: SFCWithInstall<DefineComponent<{
270
365
  readonly action: string;
271
366
  readonly accept: string;
272
367
  readonly dictCode: string;
273
- readonly role: Role;
274
368
  readonly userInfo: UserInfo;
369
+ readonly role: Role;
275
370
  readonly property: string;
276
371
  readonly requiredFileType: boolean;
277
372
  readonly attrCheck: string;
@@ -290,5 +385,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
290
385
  readonly fileTypeList: FileTypeList[];
291
386
  readonly actionRoutePath: string;
292
387
  readonly sourceNumberType: string;
388
+ readonly onConfirmBeforeUpload: Function;
293
389
  }, {}>>;
294
390
  export default _default;
@@ -3,6 +3,9 @@ import { InitializeConfig } from '../upload-file-types';
3
3
  export interface ButtonConfig extends InitializeConfig {
4
4
  row: RecordString;
5
5
  rowIndex: number;
6
+ downloadUrl?: string;
7
+ deleteUrl?: string;
8
+ previewUrl?: string;
6
9
  }
7
10
  export default function useOperationColumnButton(): {
8
11
  handleDelete: <T extends ButtonConfig>(payload: T) => void;
@@ -1,5 +1,6 @@
1
1
  import { ExtractPropTypes, PropType, Ref } from 'vue';
2
2
  import type { Role, UserInfo, CurrentRow, ColumnItem, LayoutConfig, RecordString } from '../../edit-page-layout';
3
+ import type { UploadProps } from 'ant-design-vue';
3
4
  export interface InitializeConfig {
4
5
  groupCode: string;
5
6
  pageData?: Ref<RecordString>;
@@ -45,6 +46,14 @@ export interface ColumnItemWithExtend extends ColumnItem {
45
46
  idx: number;
46
47
  }
47
48
  export type VxeItemFileUpload = ColumnItemWithExtend;
49
+ export interface FileDataType {
50
+ fileType: string;
51
+ fileList: UploadProps['fileList'];
52
+ itemNumber: string;
53
+ fileBelong: string;
54
+ [key: string]: unknown;
55
+ [key: number]: unknown;
56
+ }
48
57
  export declare const uploadFilesProps: {
49
58
  readonly visible: {
50
59
  readonly type: BooleanConstructor;
@@ -154,5 +163,9 @@ export declare const uploadFilesProps: {
154
163
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
155
164
  default: unknown;
156
165
  };
166
+ readonly onConfirmBeforeUpload: {
167
+ readonly type: FunctionConstructor;
168
+ readonly default: null;
169
+ };
157
170
  };
158
171
  export type UploadFilesProps = ExtractPropTypes<typeof uploadFilesProps>;
@@ -1,6 +1,6 @@
1
1
  import type { SrmI18n } from '../../../utils/type';
2
2
  import type { UploadFile } from 'ant-design-vue';
3
- import type { FileType } from 'ant-design-vue/lib/upload/interface';
3
+ import type { UploadFileStatus, FileType } from 'ant-design-vue/lib/upload/interface';
4
4
  import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
5
5
  import type { UserInfo, Role, CurrentRow, RecordString } from '../../edit-page-layout';
6
6
  import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
@@ -114,13 +114,104 @@ declare const _sfc_main: DefineComponent<{
114
114
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
115
115
  default: unknown;
116
116
  };
117
+ readonly onConfirmBeforeUpload: {
118
+ readonly type: FunctionConstructor;
119
+ readonly default: null;
120
+ };
117
121
  }, {
118
122
  validateInfos: validateInfos;
119
123
  limitSize: Ref<number>;
120
- accept: Ref<string>;
124
+ acceptNew: Ref<string>;
121
125
  handleConfirm: () => void;
122
126
  handleCancel: () => void;
123
- fileData: Record<string, any>;
127
+ fileData: {
128
+ [x: string]: unknown;
129
+ [x: number]: unknown;
130
+ fileType: string;
131
+ fileList: {
132
+ uid: string;
133
+ size?: number | undefined;
134
+ name: string;
135
+ fileName?: string | undefined;
136
+ lastModified?: number | undefined;
137
+ lastModifiedDate?: {
138
+ toString: () => string;
139
+ toDateString: () => string;
140
+ toTimeString: () => string;
141
+ toLocaleString: {
142
+ (): string;
143
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
144
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
145
+ };
146
+ toLocaleDateString: {
147
+ (): string;
148
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
149
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
150
+ };
151
+ toLocaleTimeString: {
152
+ (): string;
153
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
154
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
155
+ };
156
+ valueOf: () => number;
157
+ getTime: () => number;
158
+ getFullYear: () => number;
159
+ getUTCFullYear: () => number;
160
+ getMonth: () => number;
161
+ getUTCMonth: () => number;
162
+ getDate: () => number;
163
+ getUTCDate: () => number;
164
+ getDay: () => number;
165
+ getUTCDay: () => number;
166
+ getHours: () => number;
167
+ getUTCHours: () => number;
168
+ getMinutes: () => number;
169
+ getUTCMinutes: () => number;
170
+ getSeconds: () => number;
171
+ getUTCSeconds: () => number;
172
+ getMilliseconds: () => number;
173
+ getUTCMilliseconds: () => number;
174
+ getTimezoneOffset: () => number;
175
+ setTime: (time: number) => number;
176
+ setMilliseconds: (ms: number) => number;
177
+ setUTCMilliseconds: (ms: number) => number;
178
+ setSeconds: (sec: number, ms?: number | undefined) => number;
179
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
180
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
181
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
182
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
183
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
184
+ setDate: (date: number) => number;
185
+ setUTCDate: (date: number) => number;
186
+ setMonth: (month: number, date?: number | undefined) => number;
187
+ setUTCMonth: (month: number, date?: number | undefined) => number;
188
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
189
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
190
+ toUTCString: () => string;
191
+ toISOString: () => string;
192
+ toJSON: (key?: any) => string;
193
+ [Symbol.toPrimitive]: {
194
+ (hint: "default"): string;
195
+ (hint: "string"): string;
196
+ (hint: "number"): number;
197
+ (hint: string): string | number;
198
+ };
199
+ } | undefined;
200
+ url?: string | undefined;
201
+ status?: UploadFileStatus | undefined;
202
+ percent?: number | undefined;
203
+ thumbUrl?: string | undefined;
204
+ originFileObj?: FileType | undefined;
205
+ response?: unknown;
206
+ error?: any;
207
+ linkProps?: any;
208
+ type?: string | undefined;
209
+ xhr?: unknown;
210
+ preview?: string | undefined;
211
+ }[] | undefined;
212
+ itemNumber: string;
213
+ fileBelong: string;
214
+ };
124
215
  itemNumberLabel: Ref<string>;
125
216
  itemNumbeValueProp: Ref<string>;
126
217
  property: Ref<string>;
@@ -251,6 +342,10 @@ declare const _sfc_main: DefineComponent<{
251
342
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
252
343
  default: unknown;
253
344
  };
345
+ readonly onConfirmBeforeUpload: {
346
+ readonly type: FunctionConstructor;
347
+ readonly default: null;
348
+ };
254
349
  }>> & {
255
350
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
256
351
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -262,8 +357,8 @@ declare const _sfc_main: DefineComponent<{
262
357
  readonly action: string;
263
358
  readonly accept: string;
264
359
  readonly dictCode: string;
265
- readonly role: Role;
266
360
  readonly userInfo: UserInfo;
361
+ readonly role: Role;
267
362
  readonly property: string;
268
363
  readonly requiredFileType: boolean;
269
364
  readonly attrCheck: string;
@@ -282,5 +377,6 @@ declare const _sfc_main: DefineComponent<{
282
377
  readonly fileTypeList: FileTypeList[];
283
378
  readonly actionRoutePath: string;
284
379
  readonly sourceNumberType: string;
380
+ readonly onConfirmBeforeUpload: Function;
285
381
  }, {}>;
286
382
  export default _sfc_main;
@@ -4,6 +4,7 @@ import type { EChartsOption, SetOptionOpts } from 'echarts';
4
4
  import { UseChartsOptionType } from './types';
5
5
  export * from './types';
6
6
  export default function useChart(elRef: Ref<HTMLDivElement>, option?: UseChartsOptionType): {
7
+ clear: () => void;
7
8
  setOption: (option: EChartsOption, opts?: boolean | SetOptionOpts, lazyUpdate?: boolean) => void;
8
9
  getInstance: () => echarts.ECharts | null;
9
10
  showLoading: () => void;
@@ -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_CANCELAUDIT, SYMBOL_DOWNLOAD_ALL, SYMBOL_REMOVE_ALL, SYMBOL_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, 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 } from '../../lib/components/page-layout';
4
- import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, ColumnItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } 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_CHECKBOX_CHANGE, SYMBOL_CHECKBOX_ALL, 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 } from '../../lib/components/page-layout';
4
+ import type { RecordString, BindFunctionEvent, VxeBindFunctionEvent, PageButton, PageButtonWithGroupCode, PageButtonDeleteRow, PageButtonDownLoad, ValidateResult, LinkClickCallbackParams, FormFieldsItem, PageButtonDeleteFileRow, GridCheckboxChangeParamsWithGroupCoe, GridCheckboxAllParamsWithGroupCoe } 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_FETCH_NAV_DATA } from '../components/list-page-layout/src/symbol';
@@ -13,7 +13,7 @@ export type Events = {
13
13
  [SYMBOL_ADD_ONE_ROW]: PageButtonWithGroupCode;
14
14
  [SYMBOL_DELETE_ROWS]: PageButtonDeleteRow;
15
15
  [SYMBOL_CUSTOM_CLICK]: PageButtonWithGroupCode;
16
- [SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK]: FormFieldsItem | ColumnItem;
16
+ [SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK]: FormFieldsItem | VxeBindFunctionEvent;
17
17
  [SYMBOL_CACHE_BUTTON]: PageButton;
18
18
  [SYMBOL_CACHE_PAGEDATA]: RecordString;
19
19
  [SYMBOL_CACHE_REFRESH]: boolean;
@@ -43,7 +43,7 @@ export type Events = {
43
43
  [SYMBOL_FETCH_NAV_DATA]: string | number | undefined;
44
44
  [SYMBOL_UPLOAD]: PageButtonWithGroupCode;
45
45
  [SYMBOL_UPLOAD_GRID]: VxeItemFileUpload;
46
- [SYMBOL_CANCELAUDIT]: PageButton;
46
+ [SYMBOL_CANCEL_AUDIT]: PageButton;
47
47
  [SYMBOL_DOWNLOAD_ALL]: PageButtonDownLoad;
48
48
  [SYMBOL_REMOVE_ALL]: PageButtonDeleteFileRow;
49
49
  [SYMBOL_CHECKBOX_CHANGE]: GridCheckboxChangeParamsWithGroupCoe;
@@ -17,7 +17,7 @@ interface LinkClickParams {
17
17
  callback: (args: LinkClickCallbackParams) => void;
18
18
  [key: string]: any;
19
19
  }
20
- export default function (Request: ObjectMap): {
20
+ export default function (): {
21
21
  createLink: (fieldInfo: ObjectMap, type: Type, callback: (args: LinkClickCallbackParams) => void, customLinkConfig?: LinkParams) => void;
22
22
  linkClick: ({ title, row, column, formData, linkConfig, fieldInfo, callback }: LinkClickParams, type: Type) => void;
23
23
  };