@gonsin/gview 2.0.70 → 2.0.72
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 +3833 -3665
- package/dist/types/constant/local.d.ts +1 -0
- package/dist/types/stores/cache.d.ts +18 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/tabMenu.d.ts +33 -0
- package/dist/types/utils/form.d.ts +10 -0
- package/package.json +3 -2
|
@@ -10,3 +10,4 @@ export declare const TOKEN_NAME = "token";
|
|
|
10
10
|
export declare const TOKEN_EXPIRED_TIME = "tokenExpiredTime";
|
|
11
11
|
export declare const LOCAL_DATA_ID = "dataId";
|
|
12
12
|
export declare const LOCAL_SESSION_ID = "sessionId";
|
|
13
|
+
export declare const SESSION_FORM_DATA_CACHE = "formDataCache";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface FormData {
|
|
2
|
+
path: string;
|
|
3
|
+
data: Record<string, any>;
|
|
4
|
+
}
|
|
5
|
+
export declare const useCacheStore: import("pinia").StoreDefinition<"cache", {
|
|
6
|
+
formDataMap: Map<string, FormData>;
|
|
7
|
+
}, {
|
|
8
|
+
getFormData: (state: {
|
|
9
|
+
formDataMap: Map<string, FormData>;
|
|
10
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
11
|
+
formDataMap: Map<string, FormData>;
|
|
12
|
+
}>) => (path: string) => Record<string, any> | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
setFormData(path: string, data: Record<string, any>): void;
|
|
15
|
+
removeFormData(path: string): void;
|
|
16
|
+
clearFormData(path: string): void;
|
|
17
|
+
}>;
|
|
18
|
+
export {};
|
|
@@ -18,12 +18,40 @@ export declare const useTabMenuStore: import("pinia").StoreDefinition<"tabMenu",
|
|
|
18
18
|
* @description 初始化tab菜单列表
|
|
19
19
|
*/
|
|
20
20
|
initTabMenu(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* @description: 查找已经存在的标签项
|
|
23
|
+
* @param {TabMenuItem} newItem
|
|
24
|
+
*/
|
|
21
25
|
findExistTabMenuItem(newItem: TabMenuItem): any;
|
|
26
|
+
/**
|
|
27
|
+
* @description: 增加标签项
|
|
28
|
+
* @param {TabMenuItem} newItem
|
|
29
|
+
*/
|
|
22
30
|
appendTabMenuItem(newItem: TabMenuItem): void;
|
|
31
|
+
/**
|
|
32
|
+
* @description: 从列表中删除目标标签项
|
|
33
|
+
* @param {TabMenuItem} newItem
|
|
34
|
+
*/
|
|
23
35
|
subtractCurrentTabMenuItem(newItem: TabMenuItem): void;
|
|
36
|
+
/**
|
|
37
|
+
* @description: 删除目标标签项后的标签项
|
|
38
|
+
* @param {TabMenuItem} newItem
|
|
39
|
+
*/
|
|
24
40
|
subtractTabMenuItemBehind(newItem: TabMenuItem): void;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 删除目标标签项前的标签项
|
|
43
|
+
* @param {TabMenuItem} newItem
|
|
44
|
+
*/
|
|
25
45
|
subtractTabMenuItemAhead(newItem: TabMenuItem): void;
|
|
46
|
+
/**
|
|
47
|
+
* @description: 删除除了目标标签项的其他标签
|
|
48
|
+
* @param {TabMenuItem} newItem
|
|
49
|
+
*/
|
|
26
50
|
subtractTabMenuItemOther(newItem: TabMenuItem): void;
|
|
51
|
+
/**
|
|
52
|
+
* @description: 通过传入完整路由路径删除列表中的标签项
|
|
53
|
+
* @param {string} path
|
|
54
|
+
*/
|
|
27
55
|
removeTabMenuItemByPath(path: string): void;
|
|
28
56
|
returnPrevTabMenuPathItemByPath(path: string): any;
|
|
29
57
|
/**
|
|
@@ -32,4 +60,9 @@ export declare const useTabMenuStore: import("pinia").StoreDefinition<"tabMenu",
|
|
|
32
60
|
* @param {any} activeTab
|
|
33
61
|
*/
|
|
34
62
|
setCurrentTabMenuItemActiveTab(path: string, activeTab: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* @description: 删除标签项后的操作
|
|
65
|
+
* @param {string} path
|
|
66
|
+
*/
|
|
67
|
+
afterRemoveTab(path: string): void;
|
|
35
68
|
}>;
|
|
@@ -39,4 +39,14 @@ export declare function filterTreeValues(options: OptionNode[], values: string[]
|
|
|
39
39
|
* @param {any} formItemRef
|
|
40
40
|
*/
|
|
41
41
|
export declare function checkPlaceholderIfHidden(formItemRef: any): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @description: 比较对象数据的属性差异
|
|
44
|
+
* @param {object} obj1
|
|
45
|
+
* @param {object} obj2
|
|
46
|
+
*/
|
|
47
|
+
export declare function deepCompareObjects(obj1: {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
}, obj2: {
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
}): {};
|
|
42
52
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gonsin/gview",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.72",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"typings": "dist/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "cd develop && vite --host",
|
|
13
|
-
"preview": "cd develop && vite preview",
|
|
13
|
+
"preview": "cd develop && vite preview --host",
|
|
14
|
+
"build:preview": "cd develop && vite build",
|
|
14
15
|
"prebuild": "npm run lint && npm run format",
|
|
15
16
|
"build": "npm run prebuild && run-p type-check build-only && npm run build:tsc",
|
|
16
17
|
"build:tsc": "tsc packages/index.ts --emitDeclarationOnly -d --outDir dist/types/ --skipLibCheck",
|