@qqt-product/ui 7.0.1 → 7.0.3

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.
@@ -63,6 +63,13 @@ declare const _sfc_main: DefineComponent<{}, {
63
63
  showGlobalStyleDrawer: () => void;
64
64
  handleDrawerClosed: () => void;
65
65
  rightTool: DefineComponent<{}, {
66
+ headerLayoutConfig: {
67
+ showTanentPageHome: boolean;
68
+ showShoppingMall: boolean;
69
+ showWebProcurement: boolean;
70
+ showChat: boolean;
71
+ showCustomService: boolean;
72
+ };
66
73
  lightTheme: Ref<"dark" | "light">;
67
74
  darkTheme: Ref<"dark" | "light">;
68
75
  Q_APPLICATION_CONFIG: {
@@ -11,6 +11,13 @@ declare const _sfc_main: DefineComponent<{}, {
11
11
  showGlobalStyleDrawer: () => void;
12
12
  handleDrawerClosed: () => void;
13
13
  rightTool: DefineComponent<{}, {
14
+ headerLayoutConfig: {
15
+ showTanentPageHome: boolean;
16
+ showShoppingMall: boolean;
17
+ showWebProcurement: boolean;
18
+ showChat: boolean;
19
+ showCustomService: boolean;
20
+ };
14
21
  lightTheme: Ref<"dark" | "light">;
15
22
  darkTheme: Ref<"dark" | "light">;
16
23
  Q_APPLICATION_CONFIG: {
@@ -2,6 +2,13 @@ import type { SrmI18n } from '../../../../../utils/type';
2
2
  import type { DefineComponent, Ref, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  type ThemeNameType = 'light' | 'dark';
4
4
  declare const _sfc_main: DefineComponent<{}, {
5
+ headerLayoutConfig: {
6
+ showTanentPageHome: boolean;
7
+ showShoppingMall: boolean;
8
+ showWebProcurement: boolean;
9
+ showChat: boolean;
10
+ showCustomService: boolean;
11
+ };
5
12
  lightTheme: Ref<ThemeNameType>;
6
13
  darkTheme: Ref<ThemeNameType>;
7
14
  Q_APPLICATION_CONFIG: {
@@ -72,5 +72,7 @@ export interface LayoutConfigType {
72
72
  showTanentPageHome?: boolean;
73
73
  showShoppingMall?: boolean;
74
74
  showWebProcurement?: boolean;
75
+ showChat?: boolean;
76
+ showCustomService?: boolean;
75
77
  [propName: string]: any;
76
78
  }
@@ -56,6 +56,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
56
56
  serivceUrl: string;
57
57
  } | undefined;
58
58
  readonly property?: string | undefined;
59
+ readonly defaultFileType?: string | undefined;
59
60
  readonly requiredFileType?: boolean | undefined;
60
61
  readonly attrCheck?: string | undefined;
61
62
  readonly limitSize?: number | undefined;
@@ -77,6 +78,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
77
78
  }[] | undefined;
78
79
  readonly actionRoutePath?: string | undefined;
79
80
  readonly sourceNumberType?: string | undefined;
81
+ readonly onConfirmBeforeUpload?: Function | undefined;
80
82
  }>;
81
83
  handleChangeFiles: (fileResult: RecordString[]) => void;
82
84
  importVisible: Ref<boolean>;
@@ -51,6 +51,7 @@ declare const _sfc_main: DefineComponent<{
51
51
  serivceUrl: string;
52
52
  } | undefined;
53
53
  readonly property?: string | undefined;
54
+ readonly defaultFileType?: string | undefined;
54
55
  readonly requiredFileType?: boolean | undefined;
55
56
  readonly attrCheck?: string | undefined;
56
57
  readonly limitSize?: number | undefined;
@@ -72,6 +73,7 @@ declare const _sfc_main: DefineComponent<{
72
73
  }[] | undefined;
73
74
  readonly actionRoutePath?: string | undefined;
74
75
  readonly sourceNumberType?: string | undefined;
76
+ readonly onConfirmBeforeUpload?: Function | undefined;
75
77
  }>;
76
78
  handleChangeFiles: (fileResult: RecordString[]) => void;
77
79
  importVisible: Ref<boolean>;
@@ -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';
@@ -22,6 +22,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
22
22
  readonly type: StringConstructor;
23
23
  readonly default: "";
24
24
  };
25
+ readonly defaultFileType: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "";
28
+ };
25
29
  readonly requiredFileType: {
26
30
  readonly type: BooleanConstructor;
27
31
  readonly default: false;
@@ -44,7 +48,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
44
48
  };
45
49
  readonly maxCount: {
46
50
  readonly type: NumberConstructor;
47
- readonly default: 1;
51
+ readonly default: 0;
48
52
  };
49
53
  readonly userInfo: {
50
54
  readonly type: PropType<UserInfo>;
@@ -122,13 +126,104 @@ declare const _default: SFCWithInstall<DefineComponent<{
122
126
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
123
127
  default: unknown;
124
128
  };
129
+ readonly onConfirmBeforeUpload: {
130
+ readonly type: FunctionConstructor;
131
+ readonly default: null;
132
+ };
125
133
  }, {
126
134
  validateInfos: validateInfos;
127
135
  limitSize: Ref<number>;
128
- accept: Ref<string>;
136
+ acceptNew: Ref<string>;
129
137
  handleConfirm: () => void;
130
138
  handleCancel: () => void;
131
- fileData: Record<string, any>;
139
+ fileData: {
140
+ [x: string]: unknown;
141
+ [x: number]: unknown;
142
+ fileType: string;
143
+ fileList: {
144
+ uid: string;
145
+ size?: number | undefined;
146
+ name: string;
147
+ fileName?: string | undefined;
148
+ lastModified?: number | undefined;
149
+ lastModifiedDate?: {
150
+ toString: () => string;
151
+ toDateString: () => string;
152
+ toTimeString: () => string;
153
+ toLocaleString: {
154
+ (): string;
155
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
156
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
157
+ };
158
+ toLocaleDateString: {
159
+ (): string;
160
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
161
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
162
+ };
163
+ toLocaleTimeString: {
164
+ (): string;
165
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
166
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
167
+ };
168
+ valueOf: () => number;
169
+ getTime: () => number;
170
+ getFullYear: () => number;
171
+ getUTCFullYear: () => number;
172
+ getMonth: () => number;
173
+ getUTCMonth: () => number;
174
+ getDate: () => number;
175
+ getUTCDate: () => number;
176
+ getDay: () => number;
177
+ getUTCDay: () => number;
178
+ getHours: () => number;
179
+ getUTCHours: () => number;
180
+ getMinutes: () => number;
181
+ getUTCMinutes: () => number;
182
+ getSeconds: () => number;
183
+ getUTCSeconds: () => number;
184
+ getMilliseconds: () => number;
185
+ getUTCMilliseconds: () => number;
186
+ getTimezoneOffset: () => number;
187
+ setTime: (time: number) => number;
188
+ setMilliseconds: (ms: number) => number;
189
+ setUTCMilliseconds: (ms: number) => number;
190
+ setSeconds: (sec: number, ms?: number | undefined) => number;
191
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
192
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
193
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
194
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
195
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
196
+ setDate: (date: number) => number;
197
+ setUTCDate: (date: number) => number;
198
+ setMonth: (month: number, date?: number | undefined) => number;
199
+ setUTCMonth: (month: number, date?: number | undefined) => number;
200
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
201
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
202
+ toUTCString: () => string;
203
+ toISOString: () => string;
204
+ toJSON: (key?: any) => string;
205
+ [Symbol.toPrimitive]: {
206
+ (hint: "default"): string;
207
+ (hint: "string"): string;
208
+ (hint: "number"): number;
209
+ (hint: string): string | number;
210
+ };
211
+ } | undefined;
212
+ url?: string | undefined;
213
+ status?: UploadFileStatus | undefined;
214
+ percent?: number | undefined;
215
+ thumbUrl?: string | undefined;
216
+ originFileObj?: FileType | undefined;
217
+ response?: unknown;
218
+ error?: any;
219
+ linkProps?: any;
220
+ type?: string | undefined;
221
+ xhr?: unknown;
222
+ preview?: string | undefined;
223
+ }[] | undefined;
224
+ itemNumber: string;
225
+ fileBelong: string;
226
+ };
132
227
  itemNumberLabel: Ref<string>;
133
228
  itemNumbeValueProp: Ref<string>;
134
229
  property: Ref<string>;
@@ -142,6 +237,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
142
237
  beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
143
238
  handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
144
239
  srmI18n: SrmI18n;
240
+ defaultFileType: Ref<string>;
145
241
  labelCol: Ref<{
146
242
  span: number;
147
243
  }>;
@@ -159,6 +255,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
159
255
  readonly type: StringConstructor;
160
256
  readonly default: "";
161
257
  };
258
+ readonly defaultFileType: {
259
+ readonly type: StringConstructor;
260
+ readonly default: "";
261
+ };
162
262
  readonly requiredFileType: {
163
263
  readonly type: BooleanConstructor;
164
264
  readonly default: false;
@@ -181,7 +281,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
181
281
  };
182
282
  readonly maxCount: {
183
283
  readonly type: NumberConstructor;
184
- readonly default: 1;
284
+ readonly default: 0;
185
285
  };
186
286
  readonly userInfo: {
187
287
  readonly type: PropType<UserInfo>;
@@ -259,6 +359,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
259
359
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
260
360
  default: unknown;
261
361
  };
362
+ readonly onConfirmBeforeUpload: {
363
+ readonly type: FunctionConstructor;
364
+ readonly default: null;
365
+ };
262
366
  }>> & {
263
367
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
264
368
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -273,6 +377,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
273
377
  readonly role: Role;
274
378
  readonly userInfo: UserInfo;
275
379
  readonly property: string;
380
+ readonly defaultFileType: string;
276
381
  readonly requiredFileType: boolean;
277
382
  readonly attrCheck: string;
278
383
  readonly limitSize: number;
@@ -290,5 +395,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
290
395
  readonly fileTypeList: FileTypeList[];
291
396
  readonly actionRoutePath: string;
292
397
  readonly sourceNumberType: string;
398
+ readonly onConfirmBeforeUpload: Function;
293
399
  }, {}>>;
294
400
  export default _default;
@@ -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;
@@ -54,6 +63,10 @@ export declare const uploadFilesProps: {
54
63
  readonly type: StringConstructor;
55
64
  readonly default: "";
56
65
  };
66
+ readonly defaultFileType: {
67
+ readonly type: StringConstructor;
68
+ readonly default: "";
69
+ };
57
70
  readonly requiredFileType: {
58
71
  readonly type: BooleanConstructor;
59
72
  readonly default: false;
@@ -76,7 +89,7 @@ export declare const uploadFilesProps: {
76
89
  };
77
90
  readonly maxCount: {
78
91
  readonly type: NumberConstructor;
79
- readonly default: 1;
92
+ readonly default: 0;
80
93
  };
81
94
  readonly userInfo: {
82
95
  readonly type: PropType<UserInfo>;
@@ -154,5 +167,9 @@ export declare const uploadFilesProps: {
154
167
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
155
168
  default: unknown;
156
169
  };
170
+ readonly onConfirmBeforeUpload: {
171
+ readonly type: FunctionConstructor;
172
+ readonly default: null;
173
+ };
157
174
  };
158
175
  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';
@@ -14,6 +14,10 @@ declare const _sfc_main: DefineComponent<{
14
14
  readonly type: StringConstructor;
15
15
  readonly default: "";
16
16
  };
17
+ readonly defaultFileType: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "";
20
+ };
17
21
  readonly requiredFileType: {
18
22
  readonly type: BooleanConstructor;
19
23
  readonly default: false;
@@ -36,7 +40,7 @@ declare const _sfc_main: DefineComponent<{
36
40
  };
37
41
  readonly maxCount: {
38
42
  readonly type: NumberConstructor;
39
- readonly default: 1;
43
+ readonly default: 0;
40
44
  };
41
45
  readonly userInfo: {
42
46
  readonly type: PropType<UserInfo>;
@@ -114,13 +118,104 @@ declare const _sfc_main: DefineComponent<{
114
118
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
115
119
  default: unknown;
116
120
  };
121
+ readonly onConfirmBeforeUpload: {
122
+ readonly type: FunctionConstructor;
123
+ readonly default: null;
124
+ };
117
125
  }, {
118
126
  validateInfos: validateInfos;
119
127
  limitSize: Ref<number>;
120
- accept: Ref<string>;
128
+ acceptNew: Ref<string>;
121
129
  handleConfirm: () => void;
122
130
  handleCancel: () => void;
123
- fileData: Record<string, any>;
131
+ fileData: {
132
+ [x: string]: unknown;
133
+ [x: number]: unknown;
134
+ fileType: string;
135
+ fileList: {
136
+ uid: string;
137
+ size?: number | undefined;
138
+ name: string;
139
+ fileName?: string | undefined;
140
+ lastModified?: number | undefined;
141
+ lastModifiedDate?: {
142
+ toString: () => string;
143
+ toDateString: () => string;
144
+ toTimeString: () => string;
145
+ toLocaleString: {
146
+ (): string;
147
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
148
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
149
+ };
150
+ toLocaleDateString: {
151
+ (): string;
152
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
153
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
154
+ };
155
+ toLocaleTimeString: {
156
+ (): string;
157
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
158
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
159
+ };
160
+ valueOf: () => number;
161
+ getTime: () => number;
162
+ getFullYear: () => number;
163
+ getUTCFullYear: () => number;
164
+ getMonth: () => number;
165
+ getUTCMonth: () => number;
166
+ getDate: () => number;
167
+ getUTCDate: () => number;
168
+ getDay: () => number;
169
+ getUTCDay: () => number;
170
+ getHours: () => number;
171
+ getUTCHours: () => number;
172
+ getMinutes: () => number;
173
+ getUTCMinutes: () => number;
174
+ getSeconds: () => number;
175
+ getUTCSeconds: () => number;
176
+ getMilliseconds: () => number;
177
+ getUTCMilliseconds: () => number;
178
+ getTimezoneOffset: () => number;
179
+ setTime: (time: number) => number;
180
+ setMilliseconds: (ms: number) => number;
181
+ setUTCMilliseconds: (ms: number) => number;
182
+ setSeconds: (sec: number, ms?: number | undefined) => number;
183
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
184
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
185
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
186
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
187
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
188
+ setDate: (date: number) => number;
189
+ setUTCDate: (date: number) => number;
190
+ setMonth: (month: number, date?: number | undefined) => number;
191
+ setUTCMonth: (month: number, date?: number | undefined) => number;
192
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
193
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
194
+ toUTCString: () => string;
195
+ toISOString: () => string;
196
+ toJSON: (key?: any) => string;
197
+ [Symbol.toPrimitive]: {
198
+ (hint: "default"): string;
199
+ (hint: "string"): string;
200
+ (hint: "number"): number;
201
+ (hint: string): string | number;
202
+ };
203
+ } | undefined;
204
+ url?: string | undefined;
205
+ status?: UploadFileStatus | undefined;
206
+ percent?: number | undefined;
207
+ thumbUrl?: string | undefined;
208
+ originFileObj?: FileType | undefined;
209
+ response?: unknown;
210
+ error?: any;
211
+ linkProps?: any;
212
+ type?: string | undefined;
213
+ xhr?: unknown;
214
+ preview?: string | undefined;
215
+ }[] | undefined;
216
+ itemNumber: string;
217
+ fileBelong: string;
218
+ };
124
219
  itemNumberLabel: Ref<string>;
125
220
  itemNumbeValueProp: Ref<string>;
126
221
  property: Ref<string>;
@@ -134,6 +229,7 @@ declare const _sfc_main: DefineComponent<{
134
229
  beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
135
230
  handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
136
231
  srmI18n: SrmI18n;
232
+ defaultFileType: Ref<string>;
137
233
  labelCol: Ref<{
138
234
  span: number;
139
235
  }>;
@@ -151,6 +247,10 @@ declare const _sfc_main: DefineComponent<{
151
247
  readonly type: StringConstructor;
152
248
  readonly default: "";
153
249
  };
250
+ readonly defaultFileType: {
251
+ readonly type: StringConstructor;
252
+ readonly default: "";
253
+ };
154
254
  readonly requiredFileType: {
155
255
  readonly type: BooleanConstructor;
156
256
  readonly default: false;
@@ -173,7 +273,7 @@ declare const _sfc_main: DefineComponent<{
173
273
  };
174
274
  readonly maxCount: {
175
275
  readonly type: NumberConstructor;
176
- readonly default: 1;
276
+ readonly default: 0;
177
277
  };
178
278
  readonly userInfo: {
179
279
  readonly type: PropType<UserInfo>;
@@ -251,6 +351,10 @@ declare const _sfc_main: DefineComponent<{
251
351
  type: PropType<((value: boolean) => void) | ((value: boolean) => void)[]>;
252
352
  default: unknown;
253
353
  };
354
+ readonly onConfirmBeforeUpload: {
355
+ readonly type: FunctionConstructor;
356
+ readonly default: null;
357
+ };
254
358
  }>> & {
255
359
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
256
360
  onChange_upload_files?: ((...args: any[]) => any) | undefined;
@@ -265,6 +369,7 @@ declare const _sfc_main: DefineComponent<{
265
369
  readonly role: Role;
266
370
  readonly userInfo: UserInfo;
267
371
  readonly property: string;
372
+ readonly defaultFileType: string;
268
373
  readonly requiredFileType: boolean;
269
374
  readonly attrCheck: string;
270
375
  readonly limitSize: number;
@@ -282,5 +387,6 @@ declare const _sfc_main: DefineComponent<{
282
387
  readonly fileTypeList: FileTypeList[];
283
388
  readonly actionRoutePath: string;
284
389
  readonly sourceNumberType: string;
390
+ readonly onConfirmBeforeUpload: Function;
285
391
  }, {}>;
286
392
  export default _sfc_main;