@qqt-product/ui 7.0.2 → 7.0.4
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 +22614 -20373
- package/dist/index.umd.js +109 -104
- package/dist/lib/components/layout/index.d.ts +7 -1
- package/dist/lib/components/layout/src/header/index.vue.d.ts +14 -0
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +8 -0
- package/dist/lib/components/layout/src/header/navRight/rightTool.vue.d.ts +8 -0
- package/dist/lib/components/layout/src/index.vue.d.ts +7 -1
- package/dist/lib/components/layout/src/types.d.ts +9 -0
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-content/events-helper.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/hooks/common-hook.d.ts +5 -0
- package/dist/lib/components/list-page-layout/src/hooks/use-column-drag-hook.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +12 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Menu, UserInfoType } from './src/types';
|
|
1
|
+
import type { Menu, UserInfoType, LayoutConfigType } from './src/types';
|
|
2
2
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
4
4
|
import QQTLayout from './src/index.vue';
|
|
@@ -86,6 +86,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
86
86
|
kefu: {
|
|
87
87
|
type: FunctionConstructor;
|
|
88
88
|
};
|
|
89
|
+
layoutConfig: {
|
|
90
|
+
type: PropType<LayoutConfigType>;
|
|
91
|
+
};
|
|
89
92
|
}, {
|
|
90
93
|
menuSelect: (obj: any) => void;
|
|
91
94
|
scheduleClick: () => void;
|
|
@@ -179,6 +182,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
179
182
|
kefu: {
|
|
180
183
|
type: FunctionConstructor;
|
|
181
184
|
};
|
|
185
|
+
layoutConfig: {
|
|
186
|
+
type: PropType<LayoutConfigType>;
|
|
187
|
+
};
|
|
182
188
|
}>> & {
|
|
183
189
|
onMenuSelect?: ((...args: any[]) => any) | undefined;
|
|
184
190
|
"onSchedule-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -12,11 +12,17 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
12
12
|
shoppingMall: () => void;
|
|
13
13
|
webFinancialCloud: () => void;
|
|
14
14
|
webProcurement: () => void;
|
|
15
|
+
headerLayoutConfig: {
|
|
16
|
+
showTanentPageHome: boolean;
|
|
17
|
+
showShoppingMall: boolean;
|
|
18
|
+
showWebProcurement: boolean;
|
|
19
|
+
};
|
|
15
20
|
btns: Ref<{
|
|
16
21
|
title: string;
|
|
17
22
|
icon: string;
|
|
18
23
|
type: string;
|
|
19
24
|
color?: string | undefined;
|
|
25
|
+
show?: boolean | undefined;
|
|
20
26
|
}[]>;
|
|
21
27
|
linkHandle: (type: string) => void;
|
|
22
28
|
readonly QIcon: DefineComponent<{
|
|
@@ -57,6 +63,13 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
57
63
|
showGlobalStyleDrawer: () => void;
|
|
58
64
|
handleDrawerClosed: () => void;
|
|
59
65
|
rightTool: DefineComponent<{}, {
|
|
66
|
+
headerLayoutConfig: {
|
|
67
|
+
showTanentPageHome: boolean;
|
|
68
|
+
showShoppingMall: boolean;
|
|
69
|
+
showWebProcurement: boolean;
|
|
70
|
+
showChat: boolean;
|
|
71
|
+
showCustomService: boolean;
|
|
72
|
+
};
|
|
60
73
|
lightTheme: Ref<"dark" | "light">;
|
|
61
74
|
darkTheme: Ref<"dark" | "light">;
|
|
62
75
|
Q_APPLICATION_CONFIG: {
|
|
@@ -73,6 +86,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
73
86
|
icon: string;
|
|
74
87
|
type: string;
|
|
75
88
|
color?: string | undefined;
|
|
89
|
+
show?: boolean | undefined;
|
|
76
90
|
}[]>;
|
|
77
91
|
iconToolClick: (type: string) => void;
|
|
78
92
|
openChat: () => void;
|
|
@@ -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: {
|
|
@@ -27,6 +34,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
27
34
|
icon: string;
|
|
28
35
|
type: string;
|
|
29
36
|
color?: string | undefined;
|
|
37
|
+
show?: boolean | undefined;
|
|
30
38
|
}[]>;
|
|
31
39
|
iconToolClick: (type: string) => void;
|
|
32
40
|
openChat: () => void;
|
|
@@ -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: {
|
|
@@ -18,6 +25,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
18
25
|
icon: string;
|
|
19
26
|
type: string;
|
|
20
27
|
color?: string | undefined;
|
|
28
|
+
show?: boolean | undefined;
|
|
21
29
|
}[]>;
|
|
22
30
|
iconToolClick: (type: string) => void;
|
|
23
31
|
openChat: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { Menu, UserInfoType } from './types';
|
|
2
|
+
import type { Menu, UserInfoType, LayoutConfigType } from './types';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
internalOrExternal: {
|
|
5
5
|
type: BooleanConstructor;
|
|
@@ -83,6 +83,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
83
83
|
kefu: {
|
|
84
84
|
type: FunctionConstructor;
|
|
85
85
|
};
|
|
86
|
+
layoutConfig: {
|
|
87
|
+
type: PropType<LayoutConfigType>;
|
|
88
|
+
};
|
|
86
89
|
}, {
|
|
87
90
|
menuSelect: (obj: any) => void;
|
|
88
91
|
scheduleClick: () => void;
|
|
@@ -176,6 +179,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
176
179
|
kefu: {
|
|
177
180
|
type: FunctionConstructor;
|
|
178
181
|
};
|
|
182
|
+
layoutConfig: {
|
|
183
|
+
type: PropType<LayoutConfigType>;
|
|
184
|
+
};
|
|
179
185
|
}>> & {
|
|
180
186
|
onMenuSelect?: ((...args: any[]) => any) | undefined;
|
|
181
187
|
"onSchedule-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -46,6 +46,7 @@ export interface BtnPropsType {
|
|
|
46
46
|
icon: string;
|
|
47
47
|
type: string;
|
|
48
48
|
color?: string;
|
|
49
|
+
show?: boolean;
|
|
49
50
|
}
|
|
50
51
|
export interface UserInfoType {
|
|
51
52
|
token?: string;
|
|
@@ -67,3 +68,11 @@ export interface ColorListType {
|
|
|
67
68
|
label: string;
|
|
68
69
|
color: string;
|
|
69
70
|
}
|
|
71
|
+
export interface LayoutConfigType {
|
|
72
|
+
showTanentPageHome?: boolean;
|
|
73
|
+
showShoppingMall?: boolean;
|
|
74
|
+
showWebProcurement?: boolean;
|
|
75
|
+
showChat?: boolean;
|
|
76
|
+
showCustomService?: boolean;
|
|
77
|
+
[propName: string]: any;
|
|
78
|
+
}
|
|
@@ -7,7 +7,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
7
7
|
srmI18n: SrmI18n;
|
|
8
8
|
busAccount: Ref<string>;
|
|
9
9
|
open: (columnCode: string) => void;
|
|
10
|
-
close:
|
|
10
|
+
close: typeof close;
|
|
11
11
|
setFrozenColumn<T extends GridColumn>(listArry: T[]): T[];
|
|
12
12
|
getColumnsList(columnCode: string): void;
|
|
13
13
|
getFieldColorsData(item: any): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventHandler, ObjectMap } from '../../list-page-layout-types';
|
|
2
2
|
import { VxeGridEvents } from 'vxe-table';
|
|
3
|
-
export declare const useEvents: (
|
|
3
|
+
export declare const useEvents: ({ isAggregate, tableColumns, listGridRef, apiUrls }: ObjectMap) => {
|
|
4
4
|
cellClick: EventHandler;
|
|
5
5
|
sortChange: VxeGridEvents.SortChange<any>;
|
|
6
6
|
filterChange: VxeGridEvents.FilterChange<any>;
|
package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
52
52
|
cssVarBlockName: (name: string) => string;
|
|
53
53
|
};
|
|
54
54
|
srmI18n: SrmI18n;
|
|
55
|
+
gridWrapperHight: Ref<any>;
|
|
55
56
|
pageData: PageData;
|
|
56
57
|
gridConfig: ComputedRef<VxeGridProps<VxeTableDataRow>>;
|
|
57
58
|
computedColumns: ComputedRef<VxeGridPropTypes.Columns<VxeTableDataRow>>;
|