@partex/one-core 2.1.7 → 2.1.8

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,4 +1,4 @@
1
- import type { IPlatform } from '../store/common';
1
+ import type { IPlatform, ICommonOptions } from '../store/common';
2
2
  import { App } from 'vue';
3
3
  type ComponentType = any;
4
4
  export interface InstallOptions {
@@ -8,6 +8,7 @@ export interface InstallOptions {
8
8
  enableRedirect?: boolean;
9
9
  language?: boolean;
10
10
  local?: 'en-US' | 'zh-CN' | 'fr-FR';
11
+ options?: ICommonOptions;
11
12
  }
12
13
  export interface OcInstance {
13
14
  version: string;
@@ -84,6 +84,11 @@ declare const _default: DefineComponent<{
84
84
  platformList: ObjectKey;
85
85
  platformMenu: ObjectKey[];
86
86
  owned: ObjectKey;
87
+ options: {
88
+ importUrl: string;
89
+ pageUrl: string;
90
+ removeUrl: string;
91
+ };
87
92
  };
88
93
  activeMenu: Ref<string>;
89
94
  platformOption: Ref<ObjectKey[]>;
@@ -19,10 +19,6 @@ declare const _default: DefineComponent<{
19
19
  file: string;
20
20
  };
21
21
  };
22
- url: {
23
- type: PropType<string>;
24
- default: undefined;
25
- };
26
22
  }, {
27
23
  modal: Ref<boolean>;
28
24
  columns: Ref<any>;
@@ -93,10 +89,6 @@ declare const _default: DefineComponent<{
93
89
  file: string;
94
90
  };
95
91
  };
96
- url: {
97
- type: PropType<string>;
98
- default: undefined;
99
- };
100
92
  }>> & {
101
93
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
102
94
  }, {
@@ -107,6 +99,5 @@ declare const _default: DefineComponent<{
107
99
  steam?: boolean | undefined;
108
100
  };
109
101
  show: boolean;
110
- url: string;
111
102
  }, {}>;
112
103
  export default _default;
@@ -37,6 +37,11 @@ declare const _default: DefineComponent<{
37
37
  platformList: ObjectKey;
38
38
  platformMenu: ObjectKey[];
39
39
  owned: ObjectKey;
40
+ options: {
41
+ importUrl: string;
42
+ pageUrl: string;
43
+ removeUrl: string;
44
+ };
40
45
  };
41
46
  pwdRef: Ref<any>;
42
47
  pwdPhoneRef: Ref<any>;
@@ -147,6 +147,11 @@ declare const _default: DefineComponent<{
147
147
  platformList: ObjectKey;
148
148
  platformMenu: ObjectKey[];
149
149
  owned: ObjectKey;
150
+ options: {
151
+ importUrl: string;
152
+ pageUrl: string;
153
+ removeUrl: string;
154
+ };
150
155
  };
151
156
  lightTheme: GlobalThemeOverrides;
152
157
  darkTheme: BuiltInGlobalTheme;
@@ -60,6 +60,11 @@ declare const _default: DefineComponent<{
60
60
  platformList: ObjectKey;
61
61
  platformMenu: ObjectKey[];
62
62
  owned: ObjectKey;
63
+ options: {
64
+ importUrl: string;
65
+ pageUrl: string;
66
+ removeUrl: string;
67
+ };
63
68
  };
64
69
  itemData: Ref<{}>;
65
70
  doSearch: (init?: boolean) => void;
@@ -32,6 +32,8 @@ export declare const clearAllMsg: () => Promise<void>;
32
32
  export declare const updateTenant: () => Promise<void>;
33
33
  export declare const downloadRemove: (params: string[]) => Promise<void>;
34
34
  export declare const downloadRetry: (jobId: string) => Promise<void>;
35
+ export declare const downloadSteam: (url: string, data?: {}) => Promise<Blob>;
36
+ export declare const downloadSubmit: (params: Params) => Promise<void>;
35
37
  export declare const downloadList: (params: Params) => Promise<PageRecords<Model[]>>;
36
38
  export declare const fnDownload: (params: {
37
39
  [key: string]: any;
@@ -5,6 +5,11 @@ export interface IPlatform {
5
5
  platformType: string;
6
6
  platformUrl: string;
7
7
  }
8
+ export interface ICommonOptions {
9
+ importUrl: string;
10
+ pageUrl: string;
11
+ removeUrl: string;
12
+ }
8
13
  export declare function getPlatformJson(): Promise<ObjectKey>;
9
14
  export declare const commonStore: {
10
15
  needUpdate: boolean;
@@ -20,6 +25,11 @@ export declare const commonStore: {
20
25
  platformList: ObjectKey;
21
26
  platformMenu: ObjectKey[];
22
27
  owned: ObjectKey;
28
+ options: {
29
+ importUrl: string;
30
+ pageUrl: string;
31
+ removeUrl: string;
32
+ };
23
33
  };
24
34
  export declare function setPlatformMenu(val: ObjectKey[]): void;
25
35
  export declare function fnShowDownload(val: boolean): void;
@@ -28,4 +38,5 @@ export declare function fnSetLang(val?: Lang): void;
28
38
  export declare function setPlatform(val: string | IPlatform): Promise<void>;
29
39
  export declare function fnSetTheme(val: boolean): void;
30
40
  export declare function fnSetNeedUpdate(value: boolean): void;
41
+ export declare function setOptions(value: ICommonOptions): void;
31
42
  export {};