@partex/one-core 1.1.22 → 1.1.24
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/README.md +1 -2
- package/lib/components/common.d.ts +0 -1
- package/lib/components/header/index.vue.d.ts +1 -1
- package/lib/components/header/store.d.ts +1 -0
- package/lib/components/searchBar/index.vue.d.ts +11 -1
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +1144 -1150
- package/lib/one-core.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -262,8 +262,6 @@ const exportData = (): void => {
|
|
|
262
262
|
|
|
263
263
|
# 公共方法
|
|
264
264
|
|
|
265
|
-
## fnIsMobile
|
|
266
|
-
* 获取界面宽度是否小于769 返回boolean isMobile: true
|
|
267
265
|
## fnSetStorage
|
|
268
266
|
* 保存进LocalStorage
|
|
269
267
|
* key: string
|
|
@@ -387,6 +385,7 @@ FILE('api/manager/job/submit', formData)
|
|
|
387
385
|
* headerStore
|
|
388
386
|
```
|
|
389
387
|
interface Store {
|
|
388
|
+
isMobile: boolean // 是否是小屏幕
|
|
390
389
|
download: boolean // 显示/隐藏下载窗口
|
|
391
390
|
theme: boolean // 主题颜色 true: light false: dark
|
|
392
391
|
platformName: string // 平台名称
|
|
@@ -73,7 +73,6 @@ export type IActionButton = {
|
|
|
73
73
|
};
|
|
74
74
|
export declare const lightTheme: GlobalThemeOverrides;
|
|
75
75
|
export declare const darkTheme: BuiltInGlobalTheme;
|
|
76
|
-
export declare function fnIsMobile(): boolean;
|
|
77
76
|
export declare function fnSetStorage(key: string, value: string | ObjectKey | boolean, expired?: number | string): void;
|
|
78
77
|
export declare function fnGetStorage(key: string, defaultValue: any): any;
|
|
79
78
|
export declare const fnDelStorage: (key: string) => void;
|
|
@@ -69,6 +69,7 @@ declare const _default: DefineComponent<{
|
|
|
69
69
|
needUpdate: boolean;
|
|
70
70
|
download: boolean;
|
|
71
71
|
theme: boolean;
|
|
72
|
+
isMobile: boolean;
|
|
72
73
|
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
73
74
|
platformName: string;
|
|
74
75
|
platformType: string;
|
|
@@ -80,7 +81,6 @@ declare const _default: DefineComponent<{
|
|
|
80
81
|
lang: Ref<"zh-CN" | "en-US">;
|
|
81
82
|
platformName: Ref<string>;
|
|
82
83
|
platformOption: Ref<any>;
|
|
83
|
-
availWidth: Ref<boolean>;
|
|
84
84
|
showMenu: Ref<boolean>;
|
|
85
85
|
menuType: Ref<string>;
|
|
86
86
|
changeLang: () => void;
|
|
@@ -45,7 +45,17 @@ declare const _default: DefineComponent<{
|
|
|
45
45
|
drawer: Ref<boolean>;
|
|
46
46
|
isSlotHeader: Ref<boolean>;
|
|
47
47
|
isSlotAction: Ref<boolean>;
|
|
48
|
-
|
|
48
|
+
headerStore: {
|
|
49
|
+
needUpdate: boolean;
|
|
50
|
+
download: boolean;
|
|
51
|
+
theme: boolean;
|
|
52
|
+
isMobile: boolean;
|
|
53
|
+
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
54
|
+
platformName: string;
|
|
55
|
+
platformType: string;
|
|
56
|
+
platformUrl: string;
|
|
57
|
+
platformMainUrl?: string | undefined;
|
|
58
|
+
};
|
|
49
59
|
itemData: Ref<{}>;
|
|
50
60
|
doSearch: (init?: boolean) => void;
|
|
51
61
|
clearAll: () => void;
|