@gonsin/gview 2.0.141 → 2.1.1
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.mjs +6961 -5552
- package/dist/style.css +1 -1
- package/dist/types/constant/local.d.ts +2 -0
- package/dist/types/stores/column.d.ts +12 -0
- package/dist/types/stores/setting.d.ts +4 -0
- package/dist/types/types/view.d.ts +1 -1
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@ export declare const LANG_CONFIG: string;
|
|
|
11
11
|
export declare const LOCAL_MENU: string;
|
|
12
12
|
export declare const LOCAL_SIDE_MENU_CONFIG: string;
|
|
13
13
|
export declare const LOCAL_SIDE_MENU_WIDTH: string;
|
|
14
|
+
export declare const LOCAL_IS_SIDE_SELF_DRAGGING: string;
|
|
14
15
|
export declare const LOCAL_INIT_TAB_MENU_LIST: string;
|
|
15
16
|
export declare const LOCAL_TAB_MENU: string;
|
|
16
17
|
export declare const TOKEN_NAME: string;
|
|
@@ -18,4 +19,5 @@ export declare const TOKEN_EXPIRED_TIME: string;
|
|
|
18
19
|
export declare const LOCAL_SESSION_ID: string;
|
|
19
20
|
export declare const LOCAL_DATA_ID: string;
|
|
20
21
|
export declare const LOCAL_COLUMN_DATA: string;
|
|
22
|
+
export declare const LOCAL_COLUMN_WIDTH_DATA: string;
|
|
21
23
|
export declare const SESSION_FORM_DATA_CACHE: string;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
export declare const useColumnStore: import("pinia").StoreDefinition<"column", {
|
|
2
2
|
columnDataMap: Map<string, string[]>;
|
|
3
|
+
columnWidthDataMap: Map<string, Record<string, number>>;
|
|
3
4
|
}, {
|
|
4
5
|
getColumnData: (state: {
|
|
5
6
|
columnDataMap: Map<string, string[]>;
|
|
7
|
+
columnWidthDataMap: Map<string, Record<string, number>>;
|
|
6
8
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
7
9
|
columnDataMap: Map<string, string[]>;
|
|
10
|
+
columnWidthDataMap: Map<string, Record<string, number>>;
|
|
8
11
|
}>) => (key: string) => string[];
|
|
12
|
+
getColumnWidthData: (state: {
|
|
13
|
+
columnDataMap: Map<string, string[]>;
|
|
14
|
+
columnWidthDataMap: Map<string, Record<string, number>>;
|
|
15
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
16
|
+
columnDataMap: Map<string, string[]>;
|
|
17
|
+
columnWidthDataMap: Map<string, Record<string, number>>;
|
|
18
|
+
}>) => (key: string) => Record<string, number>;
|
|
9
19
|
}, {
|
|
10
20
|
initColumnData(columnData: any): void;
|
|
11
21
|
setColumnData(key: string, columnData: string[]): Promise<any>;
|
|
12
22
|
removeColumnData(key: string, columnData: string[]): void;
|
|
13
23
|
saveColumnData(): Promise<boolean>;
|
|
24
|
+
setColumnWidthData(tableViewName: string, columnWidthData: Record<string, number>): void;
|
|
25
|
+
getColumnWidthDataByTableView(tableViewName: string, colKey: string): any;
|
|
14
26
|
}>;
|
|
@@ -18,6 +18,9 @@ interface SettingState {
|
|
|
18
18
|
sideMenuExpanded: any[];
|
|
19
19
|
sideMenuScrollTop: number;
|
|
20
20
|
sideMenuWidth: number;
|
|
21
|
+
sideMenuMinWidth: number;
|
|
22
|
+
sideMenuMaxWidth: number;
|
|
23
|
+
isSideSelfDragging: boolean;
|
|
21
24
|
userLang: string;
|
|
22
25
|
token: string;
|
|
23
26
|
tokenExpiredTime: number;
|
|
@@ -69,6 +72,7 @@ export declare const useSettingStore: import("pinia").StoreDefinition<"setting",
|
|
|
69
72
|
* @description 设置用户登录状态
|
|
70
73
|
*/
|
|
71
74
|
setUserLoginStatus(status: boolean): void;
|
|
75
|
+
setIsSideSelfDragging(flag: boolean): void;
|
|
72
76
|
setSideMenuWidth(width: number): void;
|
|
73
77
|
/**
|
|
74
78
|
* @description: 初始化侧边栏菜单树状数据
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gonsin/gview",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"typings": "dist/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"pinia": "^2.0.32",
|
|
43
43
|
"qs": "^6.11.1",
|
|
44
44
|
"tdesign-icons-vue-next": "^0.1.11",
|
|
45
|
-
"tdesign-vue-next": "^1.
|
|
45
|
+
"tdesign-vue-next": "^1.10.2",
|
|
46
46
|
"vue": "^3.2.47",
|
|
47
47
|
"vue-i18n": "^9.2.2",
|
|
48
48
|
"vue-qr": "^4.0.9",
|