@partex/one-core 2.0.74 → 2.0.76

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,8 +1,7 @@
1
- import type { IPlatform } from '../store/common';
2
1
  import { App } from 'vue';
3
2
  type ComponentType = any;
4
3
  export interface InstallOptions {
5
- platform?: IPlatform;
4
+ platform?: string;
6
5
  monitor?: false | string;
7
6
  versionMonitor?: boolean;
8
7
  enableRedirect?: boolean;
@@ -1,5 +1,6 @@
1
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, VNodeChild } from 'vue';
1
+ import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
2
  import type { IHeaderMenu } from './interface';
3
+ import type { ObjectKey } from '../interface';
3
4
  import { fnSetLang } from '../store/common';
4
5
  declare const _default: DefineComponent<{
5
6
  menuOptions: {
@@ -85,9 +86,12 @@ declare const _default: DefineComponent<{
85
86
  platformType: string;
86
87
  platformUrl: string;
87
88
  platformMainUrl?: string | undefined;
89
+ platformList: ObjectKey;
90
+ platformMenu: ObjectKey[];
91
+ owned: ObjectKey;
88
92
  };
89
93
  activeMenu: Ref<string>;
90
- platformOption: Ref<any>;
94
+ platformOption: ComputedRef<ObjectKey[]>;
91
95
  showMenu: Ref<boolean>;
92
96
  fnSetLang: typeof fnSetLang;
93
97
  setDropdownMenu: () => any[];
@@ -1,11 +1,11 @@
1
1
  import { VNodeChild } from 'vue';
2
2
  interface HeaderMenu {
3
- label: string | (() => VNodeChild);
3
+ label: string | (() => string);
4
4
  key: string;
5
5
  disabled?: boolean;
6
6
  icon?: () => VNodeChild;
7
7
  children?: {
8
- label: string;
8
+ label: string | (() => string);
9
9
  key: string;
10
10
  disabled?: boolean;
11
11
  }[];
@@ -1,3 +1,4 @@
1
+ import { ObjectKey } from '..';
1
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNodeChild, PropType } from 'vue';
2
3
  import { fnSetLang } from '../store/common';
3
4
  declare const _default: DefineComponent<{
@@ -34,6 +35,9 @@ declare const _default: DefineComponent<{
34
35
  platformType: string;
35
36
  platformUrl: string;
36
37
  platformMainUrl?: string | undefined;
38
+ platformList: ObjectKey;
39
+ platformMenu: ObjectKey[];
40
+ owned: ObjectKey;
37
41
  };
38
42
  pwdRef: Ref<any>;
39
43
  pwdPhoneRef: Ref<any>;
@@ -1,5 +1,6 @@
1
1
  import { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface';
2
2
  import { GlobalThemeOverrides } from 'naive-ui';
3
+ import { ObjectKey } from '..';
3
4
  import { NDateLocale } from 'naive-ui/es/locales/date/enUS';
4
5
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
5
6
  declare const _default: DefineComponent<{
@@ -144,6 +145,9 @@ declare const _default: DefineComponent<{
144
145
  platformType: string;
145
146
  platformUrl: string;
146
147
  platformMainUrl?: string | undefined;
148
+ platformList: ObjectKey;
149
+ platformMenu: ObjectKey[];
150
+ owned: ObjectKey;
147
151
  };
148
152
  lightTheme: GlobalThemeOverrides;
149
153
  darkTheme: BuiltInGlobalTheme;
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import type { ISearchBarType } from './interface';
3
+ import type { ObjectKey } from '../interface';
3
4
  declare const _default: DefineComponent<{
4
5
  value: {
5
6
  required: true;
@@ -57,6 +58,9 @@ declare const _default: DefineComponent<{
57
58
  platformType: string;
58
59
  platformUrl: string;
59
60
  platformMainUrl?: string | undefined;
61
+ platformList: ObjectKey;
62
+ platformMenu: ObjectKey[];
63
+ owned: ObjectKey;
60
64
  };
61
65
  itemData: Ref<{}>;
62
66
  doSearch: (init?: boolean) => void;
@@ -1,5 +1,6 @@
1
+ import type { ObjectKey } from '../interface';
1
2
  type Lang = 'en-US' | 'zh-CN' | 'fr-FR';
2
- export type IPlatform = 'Components' | 'iot' | 'prt' | 'tdm' | 'qms' | 'twin' | 'maintain' | 'order';
3
+ export declare function getPlatformJson(): Promise<ObjectKey>;
3
4
  export declare const commonStore: {
4
5
  needUpdate: boolean;
5
6
  download: boolean;
@@ -12,11 +13,15 @@ export declare const commonStore: {
12
13
  platformType: string;
13
14
  platformUrl: string;
14
15
  platformMainUrl?: string | undefined;
16
+ platformList: ObjectKey;
17
+ platformMenu: ObjectKey[];
18
+ owned: ObjectKey;
15
19
  };
20
+ export declare function setPlatformMenu(val: ObjectKey[]): void;
16
21
  export declare function fnShowDownload(val: boolean): void;
17
22
  export declare function fnSetLanguage(val: boolean): void;
18
23
  export declare function fnSetLang(val?: Lang): void;
19
- export declare function setPlatform(val: IPlatform): Promise<void>;
24
+ export declare function setPlatform(val: string): Promise<void>;
20
25
  export declare function fnSetTheme(val: boolean): void;
21
26
  export declare function fnSetNeedUpdate(value: boolean): void;
22
27
  export {};