@partex/one-core 2.0.73 → 2.0.75

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
1
  import { DefineComponent, Ref, 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,6 +86,9 @@ 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
94
  platformOption: Ref<any>;
@@ -1,11 +1,11 @@
1
1
  import { VNodeChild } from 'vue';
2
2
  interface HeaderMenu {
3
- label: string;
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,5 @@
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
3
  export declare const commonStore: {
4
4
  needUpdate: boolean;
5
5
  download: boolean;
@@ -12,11 +12,15 @@ export declare const commonStore: {
12
12
  platformType: string;
13
13
  platformUrl: string;
14
14
  platformMainUrl?: string | undefined;
15
+ platformList: ObjectKey;
16
+ platformMenu: ObjectKey[];
17
+ owned: ObjectKey;
15
18
  };
19
+ export declare function setPlatformMenu(val: ObjectKey[]): void;
16
20
  export declare function fnShowDownload(val: boolean): void;
17
21
  export declare function fnSetLanguage(val: boolean): void;
18
22
  export declare function fnSetLang(val?: Lang): void;
19
- export declare function setPlatform(val: IPlatform): void;
23
+ export declare function setPlatform(val: string): Promise<void>;
20
24
  export declare function fnSetTheme(val: boolean): void;
21
25
  export declare function fnSetNeedUpdate(value: boolean): void;
22
26
  export {};
@@ -9,15 +9,19 @@ declare const _default: DefineComponent<{
9
9
  type: PropType<IOcDataTableColumns>;
10
10
  default: () => never[];
11
11
  };
12
- actions: {
13
- type: PropType<IActionButton[]>;
14
- default: undefined;
15
- };
16
12
  fetch: {
17
13
  required: true;
18
14
  type: PropType<Fn<any, any>>;
19
15
  default: () => Promise<void>;
20
16
  };
17
+ actions: {
18
+ type: PropType<IActionButton[]>;
19
+ default: undefined;
20
+ };
21
+ filters: {
22
+ type: PropType<ObjectKey>;
23
+ default: undefined;
24
+ };
21
25
  defaultCheckedRowKeys: {
22
26
  type: PropType<(string | number)[]>;
23
27
  default: () => never[];
@@ -146,21 +150,26 @@ declare const _default: DefineComponent<{
146
150
  submit: (value: TableQuery) => void;
147
151
  exportData: () => void;
148
152
  getDefaultDate: (year?: number | undefined, month?: number | undefined, date?: number | undefined) => number;
149
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly<ExtractPropTypes<{
153
+ handleColumnChange: () => void;
154
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading" | "on-update:filter")[], "on-update:value" | "update:loading" | "on-update:filter", PublicProps, Readonly<ExtractPropTypes<{
150
155
  columns: {
151
156
  required: true;
152
157
  type: PropType<IOcDataTableColumns>;
153
158
  default: () => never[];
154
159
  };
155
- actions: {
156
- type: PropType<IActionButton[]>;
157
- default: undefined;
158
- };
159
160
  fetch: {
160
161
  required: true;
161
162
  type: PropType<Fn<any, any>>;
162
163
  default: () => Promise<void>;
163
164
  };
165
+ actions: {
166
+ type: PropType<IActionButton[]>;
167
+ default: undefined;
168
+ };
169
+ filters: {
170
+ type: PropType<ObjectKey>;
171
+ default: undefined;
172
+ };
164
173
  defaultCheckedRowKeys: {
165
174
  type: PropType<(string | number)[]>;
166
175
  default: () => never[];
@@ -239,6 +248,7 @@ declare const _default: DefineComponent<{
239
248
  }>> & {
240
249
  "onOn-update:value"?: ((...args: any[]) => any) | undefined;
241
250
  "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
251
+ "onOn-update:filter"?: ((...args: any[]) => any) | undefined;
242
252
  }, {
243
253
  importer: {
244
254
  type: string;
@@ -255,6 +265,7 @@ declare const _default: DefineComponent<{
255
265
  scrollX: string | number;
256
266
  defaultCheckedRowKeys: (string | number)[];
257
267
  flexHeight: boolean;
268
+ filters: ObjectKey;
258
269
  autoSubmit: boolean;
259
270
  cache: boolean;
260
271
  resetButton: boolean;