@qqt-product/ui 10.0.2 → 11.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.
@@ -1,3 +1,4 @@
1
+ import type { SrmI18n } from '../../../../utils/type';
1
2
  import type { DefineComponent, Ref, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
3
  import type { Menu, ExtendMenu, FirstMenuMeta, RouterPropsType } from '../types';
3
4
  declare const _sfc_main: DefineComponent<{
@@ -21,6 +22,24 @@ declare const _sfc_main: DefineComponent<{
21
22
  type: BooleanConstructor;
22
23
  default: boolean;
23
24
  };
25
+ sourceData: {
26
+ required: true;
27
+ type: {
28
+ (arrayLength: number): ExtendMenu[];
29
+ (...items: ExtendMenu[]): ExtendMenu[];
30
+ new (arrayLength: number): ExtendMenu[];
31
+ new (...items: ExtendMenu[]): ExtendMenu[];
32
+ isArray(arg: any): arg is any[];
33
+ readonly prototype: any[];
34
+ from<T>(arrayLike: ArrayLike<T>): T[];
35
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
36
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
37
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
38
+ of<T_4>(...items: T_4[]): T_4[];
39
+ readonly [Symbol.species]: ArrayConstructor;
40
+ };
41
+ default: () => never[];
42
+ };
24
43
  menus: {
25
44
  required: true;
26
45
  type: {
@@ -52,6 +71,7 @@ declare const _sfc_main: DefineComponent<{
52
71
  router: {
53
72
  push: (obj: RouterPropsType) => void;
54
73
  };
74
+ srmI18n: SrmI18n;
55
75
  userInfo: {
56
76
  token: string;
57
77
  srmVersion: string;
@@ -102,11 +122,14 @@ declare const _sfc_main: DefineComponent<{
102
122
  }[]>;
103
123
  currentActive: Ref<number>;
104
124
  meta: Ref<FirstMenuMeta | undefined>;
125
+ isEffectiveRoutePath: Ref<boolean>;
105
126
  firstMenuSelect: (item: ExtendMenu, index: number) => void;
106
127
  updateMenuBadgeCount: (firstMenuPath: string, count: number) => void;
107
128
  menuSelect: () => void;
108
129
  expandedKeys: Ref<(string | number)[]>;
109
130
  autoExpandParent: Ref<boolean>;
131
+ checkPath: (node: ExtendMenu, path: string) => boolean;
132
+ getEffectiveSource: (node: ExtendMenu, data: ExtendMenu[]) => void;
110
133
  onSelect: (selectedKeys: string[], e: any) => void;
111
134
  readonly QIcon: DefineComponent<{
112
135
  type: {
@@ -228,6 +251,24 @@ declare const _sfc_main: DefineComponent<{
228
251
  type: BooleanConstructor;
229
252
  default: boolean;
230
253
  };
254
+ sourceData: {
255
+ required: true;
256
+ type: {
257
+ (arrayLength: number): ExtendMenu[];
258
+ (...items: ExtendMenu[]): ExtendMenu[];
259
+ new (arrayLength: number): ExtendMenu[];
260
+ new (...items: ExtendMenu[]): ExtendMenu[];
261
+ isArray(arg: any): arg is any[];
262
+ readonly prototype: any[];
263
+ from<T>(arrayLike: ArrayLike<T>): T[];
264
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
265
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
266
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
267
+ of<T_4>(...items: T_4[]): T_4[];
268
+ readonly [Symbol.species]: ArrayConstructor;
269
+ };
270
+ default: () => never[];
271
+ };
231
272
  menus: {
232
273
  required: true;
233
274
  type: {
@@ -265,5 +306,6 @@ declare const _sfc_main: DefineComponent<{
265
306
  collapsed: boolean;
266
307
  searchState: boolean;
267
308
  currentSearchValue: string;
309
+ sourceData: ExtendMenu[];
268
310
  }, {}>;
269
311
  export default _sfc_main;
@@ -156,6 +156,24 @@ declare const _sfc_main: DefineComponent<{
156
156
  type: BooleanConstructor;
157
157
  default: boolean;
158
158
  };
159
+ sourceData: {
160
+ required: true;
161
+ type: {
162
+ (arrayLength: number): ExtendMenu[];
163
+ (...items: ExtendMenu[]): ExtendMenu[];
164
+ new (arrayLength: number): ExtendMenu[];
165
+ new (...items: ExtendMenu[]): ExtendMenu[];
166
+ isArray(arg: any): arg is any[];
167
+ readonly prototype: any[];
168
+ from<T>(arrayLike: ArrayLike<T>): T[];
169
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
170
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
171
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
172
+ of<T_4>(...items: T_4[]): T_4[];
173
+ readonly [Symbol.species]: ArrayConstructor;
174
+ };
175
+ default: () => never[];
176
+ };
159
177
  menus: {
160
178
  required: true;
161
179
  type: {
@@ -187,6 +205,7 @@ declare const _sfc_main: DefineComponent<{
187
205
  router: {
188
206
  push: (obj: RouterPropsType) => void;
189
207
  };
208
+ srmI18n: SrmI18n;
190
209
  userInfo: {
191
210
  token: string;
192
211
  srmVersion: string;
@@ -237,11 +256,14 @@ declare const _sfc_main: DefineComponent<{
237
256
  }[]>;
238
257
  currentActive: Ref<number>;
239
258
  meta: Ref<FirstMenuMeta | undefined>;
259
+ isEffectiveRoutePath: Ref<boolean>;
240
260
  firstMenuSelect: (item: ExtendMenu, index: number) => void;
241
261
  updateMenuBadgeCount: (firstMenuPath: string, count: number) => void;
242
262
  menuSelect: () => void;
243
263
  expandedKeys: Ref<(string | number)[]>;
244
264
  autoExpandParent: Ref<boolean>;
265
+ checkPath: (node: ExtendMenu, path: string) => boolean;
266
+ getEffectiveSource: (node: ExtendMenu, data: ExtendMenu[]) => void;
245
267
  onSelect: (selectedKeys: string[], e: any) => void;
246
268
  readonly QIcon: DefineComponent<{
247
269
  type: {
@@ -363,6 +385,24 @@ declare const _sfc_main: DefineComponent<{
363
385
  type: BooleanConstructor;
364
386
  default: boolean;
365
387
  };
388
+ sourceData: {
389
+ required: true;
390
+ type: {
391
+ (arrayLength: number): ExtendMenu[];
392
+ (...items: ExtendMenu[]): ExtendMenu[];
393
+ new (arrayLength: number): ExtendMenu[];
394
+ new (...items: ExtendMenu[]): ExtendMenu[];
395
+ isArray(arg: any): arg is any[];
396
+ readonly prototype: any[];
397
+ from<T>(arrayLike: ArrayLike<T>): T[];
398
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
399
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
400
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
401
+ of<T_4>(...items: T_4[]): T_4[];
402
+ readonly [Symbol.species]: ArrayConstructor;
403
+ };
404
+ default: () => never[];
405
+ };
366
406
  menus: {
367
407
  required: true;
368
408
  type: {
@@ -400,6 +440,7 @@ declare const _sfc_main: DefineComponent<{
400
440
  collapsed: boolean;
401
441
  searchState: boolean;
402
442
  currentSearchValue: string;
443
+ sourceData: ExtendMenu[];
403
444
  }, {}>;
404
445
  menuSearch: DefineComponent<{
405
446
  collapsed: {
@@ -73,5 +73,6 @@ export interface LayoutConfigType {
73
73
  showShoppingMall?: boolean;
74
74
  showWebProcurement?: boolean;
75
75
  showI18n?: boolean;
76
+ showChatBi?: boolean;
76
77
  [propName: string]: any;
77
78
  }
@@ -81,7 +81,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
81
81
  attrs?: ObjectMap | undefined;
82
82
  extend?: ObjectMap | undefined;
83
83
  customSearch?: ((args: ObjectMap) => void) | undefined;
84
- customReset?: (() => void) | undefined;
84
+ customReset?: ((args: ObjectMap) => void) | undefined;
85
85
  form: {
86
86
  type: string;
87
87
  label: string;
@@ -195,7 +195,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
195
195
  attrs?: ObjectMap | undefined;
196
196
  extend?: ObjectMap | undefined;
197
197
  customSearch?: ((args: ObjectMap) => void) | undefined;
198
- customReset?: (() => void) | undefined;
198
+ customReset?: ((args: ObjectMap) => void) | undefined;
199
199
  form: {
200
200
  type: string;
201
201
  label: string;
@@ -74,7 +74,7 @@ declare const _sfc_main: DefineComponent<{
74
74
  attrs?: ObjectMap | undefined;
75
75
  extend?: ObjectMap | undefined;
76
76
  customSearch?: ((args: ObjectMap) => void) | undefined;
77
- customReset?: (() => void) | undefined;
77
+ customReset?: ((args: ObjectMap) => void) | undefined;
78
78
  form: {
79
79
  type: string;
80
80
  label: string;
@@ -188,7 +188,7 @@ declare const _sfc_main: DefineComponent<{
188
188
  attrs?: ObjectMap | undefined;
189
189
  extend?: ObjectMap | undefined;
190
190
  customSearch?: ((args: ObjectMap) => void) | undefined;
191
- customReset?: (() => void) | undefined;
191
+ customReset?: ((args: ObjectMap) => void) | undefined;
192
192
  form: {
193
193
  type: string;
194
194
  label: string;
@@ -96,7 +96,7 @@ export interface PageData {
96
96
  attrs?: ObjectMap;
97
97
  extend?: ObjectMap;
98
98
  customSearch?: (args: ObjectMap) => void;
99
- customReset?: () => void;
99
+ customReset?: (args: ObjectMap) => void;
100
100
  form: QueryFormItem[];
101
101
  needAdvancedQuery?: boolean;
102
102
  formState?: ObjectMap;
@@ -11,6 +11,7 @@ export interface ButtonConfig extends InitializeConfig {
11
11
  export default function useOperationColumnButton(): {
12
12
  operationUid: Ref<number>;
13
13
  lockUserInfo: Ref<UserInfo | undefined>;
14
+ lockRole: Ref<string>;
14
15
  handleDelete: <T extends ButtonConfig>(payload: T) => void;
15
16
  handleDownload: <T_1 extends ButtonConfig>(payload: T_1) => void;
16
17
  handlePreview: <T_2 extends ButtonConfig>(payload: T_2) => void;
@@ -32,6 +32,7 @@ export interface PayloadType {
32
32
  rowIndex: number;
33
33
  }
34
34
  export interface ColumnItemExtend {
35
+ params?: RecordString;
35
36
  url?: string;
36
37
  maxCount?: number;
37
38
  maxNumber?: number;
@@ -2,20 +2,16 @@ import type { SrmI18n } from '../../utils/type';
2
2
  import type { ButtonConfig } from '../upload-file/src/hook/use-operation-column-button-hook';
3
3
  import type { FileDataTypes } from './src/upload-file-vxe-types';
4
4
  import type { ColumnItemWithExtend } from '../upload-file';
5
- import type { RecordString } from '../select-modal';
5
+ import type { VxeColumnSlotTypes, VxeTableDataRow } from 'vxe-table';
6
6
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
7
7
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
8
8
  import QuploadFileVxe from './src/upload-file-vxe.vue';
9
9
  export { QuploadFileVxe };
10
10
  declare const _default: SFCWithInstall<DefineComponent<{
11
- readonly row: {
12
- readonly type: PropType<RecordString>;
11
+ readonly payload: {
12
+ readonly type: PropType<VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>>;
13
13
  readonly default: () => {};
14
14
  };
15
- readonly rowIndex: {
16
- readonly type: NumberConstructor;
17
- readonly default: 0;
18
- };
19
15
  readonly columnItem: {
20
16
  readonly type: PropType<ColumnItemWithExtend>;
21
17
  readonly default: () => {};
@@ -47,14 +43,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
47
43
  styleWidth: ComputedRef<string>;
48
44
  srmI18n: SrmI18n;
49
45
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
50
- readonly row: {
51
- readonly type: PropType<RecordString>;
46
+ readonly payload: {
47
+ readonly type: PropType<VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>>;
52
48
  readonly default: () => {};
53
49
  };
54
- readonly rowIndex: {
55
- readonly type: NumberConstructor;
56
- readonly default: 0;
57
- };
58
50
  readonly columnItem: {
59
51
  readonly type: PropType<ColumnItemWithExtend>;
60
52
  readonly default: () => {};
@@ -72,10 +64,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
72
64
  readonly default: () => string[];
73
65
  };
74
66
  }>>, {
75
- readonly row: RecordString;
76
67
  readonly groupType: string;
77
68
  readonly operationBtn: unknown[];
78
- readonly rowIndex: number;
69
+ readonly payload: VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>;
79
70
  readonly columnItem: ColumnItemWithExtend;
80
71
  readonly uploadBtnStatus: boolean;
81
72
  }, {}>>;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import type { RecordString } from '../../edit-page-layout';
3
2
  import { ColumnItemWithExtend } from '../../upload-file/src/upload-file-types';
3
+ import type { VxeColumnSlotTypes, VxeTableDataRow } from 'vxe-table';
4
4
  export interface FileDataTypes {
5
5
  fileName: string;
6
6
  filePath: string;
@@ -10,14 +10,10 @@ export interface FileDataTypes {
10
10
  [key: string]: unknown;
11
11
  }
12
12
  export declare const uploadFileProps: {
13
- readonly row: {
14
- readonly type: PropType<RecordString>;
13
+ readonly payload: {
14
+ readonly type: PropType<VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>>;
15
15
  readonly default: () => {};
16
16
  };
17
- readonly rowIndex: {
18
- readonly type: NumberConstructor;
19
- readonly default: 0;
20
- };
21
17
  readonly columnItem: {
22
18
  readonly type: PropType<ColumnItemWithExtend>;
23
19
  readonly default: () => {};
@@ -1,18 +1,14 @@
1
1
  import type { SrmI18n } from '../../../utils/type';
2
2
  import type { ButtonConfig } from '../../upload-file/src/hook/use-operation-column-button-hook';
3
3
  import type { ColumnItemWithExtend } from '../../upload-file';
4
- import type { RecordString } from '../../edit-page-layout';
4
+ import type { VxeColumnSlotTypes, VxeTableDataRow } from 'vxe-table';
5
5
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
6
6
  import { FileDataTypes } from './upload-file-vxe-types';
7
7
  declare const _sfc_main: DefineComponent<{
8
- readonly row: {
9
- readonly type: PropType<RecordString>;
8
+ readonly payload: {
9
+ readonly type: PropType<VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>>;
10
10
  readonly default: () => {};
11
11
  };
12
- readonly rowIndex: {
13
- readonly type: NumberConstructor;
14
- readonly default: 0;
15
- };
16
12
  readonly columnItem: {
17
13
  readonly type: PropType<ColumnItemWithExtend>;
18
14
  readonly default: () => {};
@@ -44,14 +40,10 @@ declare const _sfc_main: DefineComponent<{
44
40
  styleWidth: ComputedRef<string>;
45
41
  srmI18n: SrmI18n;
46
42
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
47
- readonly row: {
48
- readonly type: PropType<RecordString>;
43
+ readonly payload: {
44
+ readonly type: PropType<VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>>;
49
45
  readonly default: () => {};
50
46
  };
51
- readonly rowIndex: {
52
- readonly type: NumberConstructor;
53
- readonly default: 0;
54
- };
55
47
  readonly columnItem: {
56
48
  readonly type: PropType<ColumnItemWithExtend>;
57
49
  readonly default: () => {};
@@ -69,10 +61,9 @@ declare const _sfc_main: DefineComponent<{
69
61
  readonly default: () => string[];
70
62
  };
71
63
  }>>, {
72
- readonly row: RecordString;
73
64
  readonly groupType: string;
74
65
  readonly operationBtn: unknown[];
75
- readonly rowIndex: number;
66
+ readonly payload: VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>;
76
67
  readonly columnItem: ColumnItemWithExtend;
77
68
  readonly uploadBtnStatus: boolean;
78
69
  }, {}>;