@partex/one-core 2.0.14 → 2.0.16

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.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/lib/components/actionButton/function.d.ts +1 -1
  3. package/lib/components/actionButton/interface.d.ts +1 -1
  4. package/lib/components/circle/index.d.ts +1 -0
  5. package/lib/components/circle/index.vue.d.ts +72 -0
  6. package/lib/components/common.d.ts +1 -59
  7. package/lib/components/components.d.ts +5 -4
  8. package/lib/components/create.d.ts +2 -1
  9. package/lib/components/error/index.d.ts +1 -0
  10. package/lib/components/error/index.vue.d.ts +23 -0
  11. package/lib/components/fetch.d.ts +7 -0
  12. package/lib/components/form/index.vue.d.ts +13 -13
  13. package/lib/components/form/interface.d.ts +1 -1
  14. package/lib/components/header/index.d.ts +0 -2
  15. package/lib/components/header/index.vue.d.ts +7 -15
  16. package/lib/components/icon/Add.vue.d.ts +3 -0
  17. package/lib/components/icon/Alert.vue.d.ts +3 -0
  18. package/lib/components/icon/ArrowClockwise.vue.d.ts +3 -0
  19. package/lib/components/icon/ArrowDown.vue.d.ts +3 -0
  20. package/lib/components/icon/ArrowSquareDown.vue.d.ts +3 -0
  21. package/lib/components/icon/ArrowUp.vue.d.ts +3 -0
  22. package/lib/components/icon/Bar.vue.d.ts +3 -0
  23. package/lib/components/icon/CalendarArrowDown.vue.d.ts +3 -0
  24. package/lib/components/icon/ChevronLeft.vue.d.ts +3 -0
  25. package/lib/components/icon/Clear.vue.d.ts +3 -0
  26. package/lib/components/icon/CloudArrowDown.vue.d.ts +3 -0
  27. package/lib/components/icon/Delete.vue.d.ts +3 -0
  28. package/lib/components/icon/Dismiss.vue.d.ts +3 -0
  29. package/lib/components/icon/Drafts.vue.d.ts +3 -0
  30. package/lib/components/icon/Eye.vue.d.ts +3 -0
  31. package/lib/components/icon/Filter.vue.d.ts +3 -0
  32. package/lib/components/icon/FullScreenMaximize.vue.d.ts +3 -0
  33. package/lib/components/icon/GridDots.vue.d.ts +3 -0
  34. package/lib/components/icon/MailInboxAdd.vue.d.ts +3 -0
  35. package/lib/components/icon/Navigation.vue.d.ts +3 -0
  36. package/lib/components/icon/Pin.vue.d.ts +3 -0
  37. package/lib/components/icon/Reset.vue.d.ts +3 -0
  38. package/lib/components/icon/Search.vue.d.ts +3 -0
  39. package/lib/components/icon/WeatherMoon.vue.d.ts +3 -0
  40. package/lib/components/icon/WeatherSunny.vue.d.ts +3 -0
  41. package/lib/components/icon/index.d.ts +25 -0
  42. package/lib/components/importer/api.d.ts +1 -1
  43. package/lib/components/importer/index.vue.d.ts +1 -1
  44. package/lib/components/index.d.ts +5 -0
  45. package/lib/components/interface.d.ts +45 -0
  46. package/lib/components/local/index.d.ts +181 -177
  47. package/lib/components/login/index.d.ts +0 -2
  48. package/lib/components/login/index.vue.d.ts +14 -0
  49. package/lib/components/main/index.d.ts +1 -0
  50. package/lib/components/main/index.vue.d.ts +157 -0
  51. package/lib/components/numberRoll/index.vue.d.ts +1 -1
  52. package/lib/components/role.d.ts +5 -0
  53. package/lib/components/searchBar/index.vue.d.ts +3 -2
  54. package/lib/components/{header → store}/api.d.ts +8 -1
  55. package/lib/components/{header/store.d.ts → store/common.d.ts} +7 -4
  56. package/lib/components/store/index.d.ts +4 -0
  57. package/lib/components/{login/store.d.ts → store/user.d.ts} +1 -1
  58. package/lib/components/table/index.d.ts +1 -1
  59. package/lib/components/table/index.vue.d.ts +1 -1
  60. package/lib/components/table/interface.d.ts +25 -1
  61. package/lib/components/theme.d.ts +4 -0
  62. package/lib/components/utils/fetch.d.ts +4 -0
  63. package/lib/components/utils/localStorage.d.ts +15 -0
  64. package/lib/components/utils/router.d.ts +3 -0
  65. package/lib/one-core.cjs +1 -98
  66. package/lib/one-core.js +4084 -6698
  67. package/lib/one-core.umd.cjs +1 -98
  68. package/lib/style.css +1 -1
  69. package/package.json +4 -1
  70. package/volar.d.ts +56 -18
  71. package/lib/components/dashboard/index.d.ts +0 -1
  72. package/lib/components/error404/index.d.ts +0 -1
  73. package/lib/components/error404/index.vue.d.ts +0 -5
  74. package/lib/components/error500/index.d.ts +0 -1
  75. package/lib/components/error500/index.vue.d.ts +0 -5
  76. package/lib/components/icon.d.ts +0 -25
  77. package/lib/components/login/api.d.ts +0 -7
  78. package/lib/components/tableEdit/common.d.ts +0 -1
  79. package/lib/components/tableEdit/components/action.vue.d.ts +0 -79
  80. package/lib/components/tableEdit/components/code.vue.d.ts +0 -42
  81. package/lib/components/tableEdit/components/form.vue.d.ts +0 -254
  82. package/lib/components/tableEdit/components/header.vue.d.ts +0 -270
  83. package/lib/components/tableEdit/index.d.ts +0 -2
  84. package/lib/components/tableEdit/index.vue.d.ts +0 -610
  85. package/lib/components/tableEdit/interface.d.ts +0 -25
  86. package/lib/src/monaco.d.ts +0 -2
  87. /package/lib/components/{dashboard/store.d.ts → scale.d.ts} +0 -0
  88. /package/lib/components/{login → store}/interface.d.ts +0 -0
@@ -1,5 +1,10 @@
1
+ export * from './interface';
1
2
  export * from './components';
2
3
  export * from './icon';
4
+ export * from './theme';
3
5
  export * from './common';
6
+ export * from './scale';
7
+ export * from './fetch';
8
+ export * from './role';
4
9
  export { default, install } from './preset';
5
10
  export { default as create } from './create';
@@ -0,0 +1,45 @@
1
+ import type { PaginationInfo } from 'naive-ui';
2
+ import { VNodeChild } from 'vue';
3
+ export interface Query {
4
+ page: number;
5
+ pageSize?: number;
6
+ pageCount?: number;
7
+ itemCount?: number;
8
+ pageSizes?: number[];
9
+ isGetAll?: 0 | 1;
10
+ keyword?: string;
11
+ columnKey?: string | null;
12
+ order?: string | null;
13
+ showQuickJumper?: boolean;
14
+ showSizePicker?: boolean;
15
+ pageSlot?: number;
16
+ prefix?: (info: PaginationInfo) => VNodeChild;
17
+ suffix?: (info: PaginationInfo) => VNodeChild;
18
+ }
19
+ export interface PageModel<T> {
20
+ current: string;
21
+ size: string;
22
+ pages: string;
23
+ total: string;
24
+ records: T;
25
+ }
26
+ export interface PageRecords<T> {
27
+ query: Query;
28
+ records: T;
29
+ }
30
+ export interface Fetch<T = any> {
31
+ (url: string, data?: any, responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'stream' | 'text', timeout?: number): Promise<T>;
32
+ }
33
+ export interface Fn<T = any, R = T> {
34
+ (...arg: T[]): R;
35
+ }
36
+ export type ObjectKey<T = any> = {
37
+ [x in string | number]: T;
38
+ };
39
+ export type Recordable<T = any> = Record<string, T>;
40
+ export type Nullable<T> = T | null;
41
+ export type Mapped<Type> = {
42
+ [Properties in keyof Type as KeyType]: Type[Properties];
43
+ };
44
+ export type TimeoutHandle = ReturnType<typeof setTimeout> | undefined;
45
+ export type IntervalHandle = ReturnType<typeof setInterval> | undefined;
@@ -1,187 +1,191 @@
1
- export declare const langCN: {
2
- Platform: {
3
- iot: string;
4
- tdm: string;
5
- qms: string;
6
- twin: string;
7
- maintain: string;
8
- };
9
- Notice: {
10
- success: string;
11
- error: string;
12
- };
13
- Common: {
14
- validDays: string;
15
- add: string;
16
- edit: string;
17
- apply: string;
18
- cancel: string;
19
- search: string;
20
- refresh: string;
21
- filter: string;
22
- reset: string;
23
- more: string;
24
- export: string;
25
- success: string;
26
- failed: string;
27
- processing: string;
28
- action: string;
29
- back: string;
30
- title: string;
31
- message: {
32
- title: string;
33
- title2: string;
34
- unRead: string;
35
- all: string;
36
- read: string;
37
- readAll: string;
38
- };
39
- login: {
40
- mobile: string;
41
- mobilePlaceholder: string;
42
- mobileMessage: string;
43
- password: string;
44
- passwordPlaceholder: string;
45
- passwordMessage: string;
46
- userName: string;
47
- userNamePlaceholder: string;
48
- userNameMessage: string;
49
- in: string;
50
- };
51
- my: {
52
- title: string;
53
- tenantCode: string;
54
- tenantName: string;
55
- name: string;
56
- email: string;
57
- emailMessage: string;
58
- realName: string;
59
- phone: string;
60
- phoneMessage: string;
61
- submit: string;
62
- password: string;
63
- oldPassword: string;
64
- newPassword: string;
65
- checkPassword: string;
66
- oldPasswordMessage: string;
67
- newPasswordMessage: string;
68
- checkPasswordMessage: string;
1
+ import { I18n } from 'vue-i18n';
2
+ export declare const i18n: I18n<{
3
+ 'en-US': {
4
+ Platform: {
5
+ iot: string;
6
+ tdm: string;
7
+ qms: string;
8
+ twin: string;
9
+ maintain: string;
69
10
  };
70
- dropdownMenu: {
71
- software: string;
72
- android: string;
73
- ios: string;
74
- chrome: string;
75
- edge: string;
76
- dashboard_IoT: string;
77
- dashboard_Prt: string;
78
- report: string;
79
- info: string;
80
- logout: string;
11
+ Notice: {
12
+ success: string;
13
+ error: string;
81
14
  };
82
- importer: {
15
+ Common: {
16
+ validDays: string;
17
+ add: string;
18
+ edit: string;
19
+ apply: string;
20
+ cancel: string;
21
+ search: string;
22
+ refresh: string;
23
+ filter: string;
24
+ reset: string;
25
+ more: string;
26
+ export: string;
27
+ success: string;
28
+ failed: string;
29
+ processing: string;
30
+ action: string;
31
+ back: string;
83
32
  title: string;
84
- file: string;
85
- download: string;
86
- btnDownload: string;
87
- fileName: string;
88
- status: string;
89
- createTime: string;
90
- retry: string;
33
+ message: {
34
+ title: string;
35
+ title2: string;
36
+ unRead: string;
37
+ all: string;
38
+ read: string;
39
+ readAll: string;
40
+ };
41
+ login: {
42
+ mobile: string;
43
+ mobilePlaceholder: string;
44
+ mobileMessage: string;
45
+ password: string;
46
+ passwordPlaceholder: string;
47
+ passwordMessage: string;
48
+ userName: string;
49
+ userNamePlaceholder: string;
50
+ userNameMessage: string;
51
+ in: string;
52
+ };
53
+ my: {
54
+ title: string;
55
+ tenantCode: string;
56
+ tenantName: string;
57
+ name: string;
58
+ email: string;
59
+ emailMessage: string;
60
+ realName: string;
61
+ phone: string;
62
+ phoneMessage: string;
63
+ submit: string;
64
+ password: string;
65
+ oldPassword: string;
66
+ newPassword: string;
67
+ checkPassword: string;
68
+ oldPasswordMessage: string;
69
+ newPasswordMessage: string;
70
+ checkPasswordMessage: string;
71
+ };
72
+ dropdownMenu: {
73
+ software: string;
74
+ android: string;
75
+ ios: string;
76
+ chrome: string;
77
+ edge: string;
78
+ dashboard: string;
79
+ dashboard_IoT: string;
80
+ dashboard_Prt: string;
81
+ report: string;
82
+ info: string;
83
+ logout: string;
84
+ };
85
+ importer: {
86
+ title: string;
87
+ file: string;
88
+ download: string;
89
+ btnDownload: string;
90
+ fileName: string;
91
+ status: string;
92
+ createTime: string;
93
+ retry: string;
94
+ };
91
95
  };
92
96
  };
93
- };
94
- export declare const langUS: {
95
- Platform: {
96
- iot: string;
97
- tdm: string;
98
- qms: string;
99
- twin: string;
100
- maintain: string;
101
- };
102
- Notice: {
103
- success: string;
104
- error: string;
105
- };
106
- Common: {
107
- validDays: string;
108
- add: string;
109
- edit: string;
110
- apply: string;
111
- cancel: string;
112
- search: string;
113
- refresh: string;
114
- filter: string;
115
- reset: string;
116
- more: string;
117
- export: string;
118
- success: string;
119
- failed: string;
120
- processing: string;
121
- action: string;
122
- back: string;
123
- title: string;
124
- message: {
125
- title: string;
126
- title2: string;
127
- unRead: string;
128
- all: string;
129
- read: string;
130
- readAll: string;
131
- };
132
- login: {
133
- mobile: string;
134
- mobilePlaceholder: string;
135
- mobileMessage: string;
136
- password: string;
137
- passwordPlaceholder: string;
138
- passwordMessage: string;
139
- userName: string;
140
- userNamePlaceholder: string;
141
- userNameMessage: string;
142
- in: string;
143
- };
144
- my: {
145
- title: string;
146
- tenantCode: string;
147
- tenantName: string;
148
- name: string;
149
- email: string;
150
- emailMessage: string;
151
- realName: string;
152
- phone: string;
153
- phoneMessage: string;
154
- submit: string;
155
- password: string;
156
- oldPassword: string;
157
- newPassword: string;
158
- checkPassword: string;
159
- oldPasswordMessage: string;
160
- newPasswordMessage: string;
161
- checkPasswordMessage: string;
97
+ 'zh-CN': {
98
+ Platform: {
99
+ iot: string;
100
+ tdm: string;
101
+ qms: string;
102
+ twin: string;
103
+ maintain: string;
162
104
  };
163
- dropdownMenu: {
164
- software: string;
165
- android: string;
166
- ios: string;
167
- chrome: string;
168
- edge: string;
169
- dashboard: string;
170
- dashboard_IoT: string;
171
- dashboard_Prt: string;
172
- report: string;
173
- info: string;
174
- logout: string;
105
+ Notice: {
106
+ success: string;
107
+ error: string;
175
108
  };
176
- importer: {
109
+ Common: {
110
+ validDays: string;
111
+ add: string;
112
+ edit: string;
113
+ apply: string;
114
+ cancel: string;
115
+ search: string;
116
+ refresh: string;
117
+ filter: string;
118
+ reset: string;
119
+ more: string;
120
+ export: string;
121
+ success: string;
122
+ failed: string;
123
+ processing: string;
124
+ action: string;
125
+ back: string;
177
126
  title: string;
178
- file: string;
179
- download: string;
180
- btnDownload: string;
181
- fileName: string;
182
- status: string;
183
- createTime: string;
184
- retry: string;
127
+ message: {
128
+ title: string;
129
+ title2: string;
130
+ unRead: string;
131
+ all: string;
132
+ read: string;
133
+ readAll: string;
134
+ };
135
+ login: {
136
+ mobile: string;
137
+ mobilePlaceholder: string;
138
+ mobileMessage: string;
139
+ password: string;
140
+ passwordPlaceholder: string;
141
+ passwordMessage: string;
142
+ userName: string;
143
+ userNamePlaceholder: string;
144
+ userNameMessage: string;
145
+ in: string;
146
+ };
147
+ my: {
148
+ title: string;
149
+ tenantCode: string;
150
+ tenantName: string;
151
+ name: string;
152
+ email: string;
153
+ emailMessage: string;
154
+ realName: string;
155
+ phone: string;
156
+ phoneMessage: string;
157
+ submit: string;
158
+ password: string;
159
+ oldPassword: string;
160
+ newPassword: string;
161
+ checkPassword: string;
162
+ oldPasswordMessage: string;
163
+ newPasswordMessage: string;
164
+ checkPasswordMessage: string;
165
+ };
166
+ dropdownMenu: {
167
+ software: string;
168
+ android: string;
169
+ ios: string;
170
+ chrome: string;
171
+ edge: string;
172
+ dashboard_IoT: string;
173
+ dashboard_Prt: string;
174
+ report: string;
175
+ info: string;
176
+ logout: string;
177
+ };
178
+ importer: {
179
+ title: string;
180
+ file: string;
181
+ download: string;
182
+ btnDownload: string;
183
+ fileName: string;
184
+ status: string;
185
+ createTime: string;
186
+ retry: string;
187
+ };
185
188
  };
186
189
  };
187
- };
190
+ 'fr-FR': {};
191
+ }, {}, {}, string, false>;
@@ -1,3 +1 @@
1
1
  export { default as OcLogin } from './index.vue';
2
- export { userStore, fnSetUser, fnGetUser, fnClearUser, fnUserLogout } from './store';
3
- export type { IUserModel, IUserTenant } from './interface';
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNodeChild, PropType } from 'vue';
2
+ import { fnSetLang } from '../store/common';
2
3
  declare const _default: DefineComponent<{
3
4
  platform: {
4
5
  required: false;
@@ -22,6 +23,18 @@ declare const _default: DefineComponent<{
22
23
  };
23
24
  }, {
24
25
  tabs: Ref<string>;
26
+ commonStore: {
27
+ needUpdate: boolean;
28
+ download: boolean;
29
+ theme: boolean;
30
+ isMobile: boolean;
31
+ language: boolean;
32
+ lang: "zh-CN" | "en-US" | "fr-FR";
33
+ platformName: string;
34
+ platformType: string;
35
+ platformUrl: string;
36
+ platformMainUrl?: string | undefined;
37
+ };
25
38
  pwdRef: Ref<any>;
26
39
  pwdPhoneRef: Ref<any>;
27
40
  formRef: Ref<any>;
@@ -47,6 +60,7 @@ declare const _default: DefineComponent<{
47
60
  tabChange: (value: string) => void;
48
61
  nameChange: (value: string) => void;
49
62
  phoneChange: (value: string) => void;
63
+ fnSetLang: typeof fnSetLang;
50
64
  dropNameSelect: (key: string) => void;
51
65
  dropPhoneSelect: (key: string) => void;
52
66
  showDropdownNameChange: (v: boolean) => void;
@@ -0,0 +1 @@
1
+ export { default as OcMain } from './index.vue';
@@ -0,0 +1,157 @@
1
+ import { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface';
2
+ import { GlobalThemeOverrides } from 'naive-ui';
3
+ import { NDateLocale } from 'naive-ui/es/locales/date/enUS';
4
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
5
+ declare const _default: DefineComponent<{
6
+ hljs: {
7
+ type: PropType<any>;
8
+ default: undefined;
9
+ };
10
+ }, {
11
+ zhCN: {
12
+ name: string;
13
+ global: {
14
+ undo: string;
15
+ redo: string;
16
+ confirm: string;
17
+ clear: string;
18
+ };
19
+ Popconfirm: {
20
+ positiveText: string;
21
+ negativeText: string;
22
+ };
23
+ Cascader: {
24
+ placeholder: string;
25
+ loading: string;
26
+ loadingRequiredMessage: (label: string) => string;
27
+ };
28
+ Time: {
29
+ dateFormat: string;
30
+ dateTimeFormat: string;
31
+ };
32
+ DatePicker: {
33
+ yearFormat: string;
34
+ monthFormat: string;
35
+ dayFormat: string;
36
+ yearTypeFormat: string;
37
+ monthTypeFormat: string;
38
+ dateFormat: string;
39
+ dateTimeFormat: string;
40
+ quarterFormat: string;
41
+ weekFormat: string;
42
+ clear: string;
43
+ now: string;
44
+ confirm: string;
45
+ selectTime: string;
46
+ selectDate: string;
47
+ datePlaceholder: string;
48
+ datetimePlaceholder: string;
49
+ monthPlaceholder: string;
50
+ yearPlaceholder: string;
51
+ quarterPlaceholder: string;
52
+ weekPlaceholder: string;
53
+ startDatePlaceholder: string;
54
+ endDatePlaceholder: string;
55
+ startDatetimePlaceholder: string;
56
+ endDatetimePlaceholder: string;
57
+ startMonthPlaceholder: string;
58
+ endMonthPlaceholder: string;
59
+ monthBeforeYear: boolean;
60
+ firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
61
+ today: string;
62
+ };
63
+ DataTable: {
64
+ checkTableAll: string;
65
+ uncheckTableAll: string;
66
+ confirm: string;
67
+ clear: string;
68
+ };
69
+ LegacyTransfer: {
70
+ sourceTitle: string;
71
+ targetTitle: string;
72
+ };
73
+ Transfer: {
74
+ selectAll: string;
75
+ unselectAll: string;
76
+ clearAll: string;
77
+ total: (num: number) => string;
78
+ selected: (num: number) => string;
79
+ };
80
+ Empty: {
81
+ description: string;
82
+ };
83
+ Select: {
84
+ placeholder: string;
85
+ };
86
+ TimePicker: {
87
+ placeholder: string;
88
+ positiveText: string;
89
+ negativeText: string;
90
+ now: string;
91
+ clear: string;
92
+ };
93
+ Pagination: {
94
+ goto: string;
95
+ selectionSuffix: string;
96
+ };
97
+ DynamicTags: {
98
+ add: string;
99
+ };
100
+ Log: {
101
+ loading: string;
102
+ };
103
+ Input: {
104
+ placeholder: string;
105
+ };
106
+ InputNumber: {
107
+ placeholder: string;
108
+ };
109
+ DynamicInput: {
110
+ create: string;
111
+ };
112
+ ThemeEditor: {
113
+ title: string;
114
+ clearAllVars: string;
115
+ clearSearch: string;
116
+ filterCompName: string;
117
+ filterVarName: string;
118
+ import: string;
119
+ export: string;
120
+ restore: string;
121
+ };
122
+ Image: {
123
+ tipPrevious: string;
124
+ tipNext: string;
125
+ tipCounterclockwise: string;
126
+ tipClockwise: string;
127
+ tipZoomOut: string;
128
+ tipZoomIn: string;
129
+ tipDownload: string;
130
+ tipClose: string;
131
+ tipOriginalSize: string;
132
+ };
133
+ };
134
+ dateZhCN: NDateLocale;
135
+ commonStore: {
136
+ needUpdate: boolean;
137
+ download: boolean;
138
+ theme: boolean;
139
+ isMobile: boolean;
140
+ language: boolean;
141
+ lang: "zh-CN" | "en-US" | "fr-FR";
142
+ platformName: string;
143
+ platformType: string;
144
+ platformUrl: string;
145
+ platformMainUrl?: string | undefined;
146
+ };
147
+ lightTheme: GlobalThemeOverrides;
148
+ darkTheme: BuiltInGlobalTheme;
149
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
150
+ hljs: {
151
+ type: PropType<any>;
152
+ default: undefined;
153
+ };
154
+ }>>, {
155
+ hljs: any;
156
+ }, {}>;
157
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Fn } from '../common';
2
+ import { Fn } from '../interface';
3
3
  declare const _default: DefineComponent<{
4
4
  value: {
5
5
  required: true;
@@ -0,0 +1,5 @@
1
+ export declare const fnCheckIoTRole: (role: string) => boolean;
2
+ export declare const fnCheckTDMRole: (role: string) => boolean;
3
+ export declare const fnCheckQMSRole: (role: string) => boolean;
4
+ export declare const fnCheckDashRole: (role: string) => boolean;
5
+ export declare const fnCheckMaintainRole: (role: string) => boolean;
@@ -45,12 +45,13 @@ declare const _default: DefineComponent<{
45
45
  drawer: Ref<boolean>;
46
46
  isSlotHeader: Ref<boolean>;
47
47
  isSlotAction: Ref<boolean>;
48
- headerStore: {
48
+ commonStore: {
49
49
  needUpdate: boolean;
50
50
  download: boolean;
51
51
  theme: boolean;
52
52
  isMobile: boolean;
53
- lang: "en-US" | "zh-CN" | "fr-FR";
53
+ language: boolean;
54
+ lang: "zh-CN" | "en-US" | "fr-FR";
54
55
  platformName: string;
55
56
  platformType: string;
56
57
  platformUrl: string;
@@ -1,4 +1,11 @@
1
- import type { Query, PageRecords } from '../common';
1
+ import type { IUserTenant } from './interface';
2
+ import type { Query, PageRecords } from '../interface';
3
+ export declare const login: (params: {
4
+ type: string;
5
+ name: string;
6
+ password: string;
7
+ }) => Promise<string>;
8
+ export declare const getUserInfo: () => Promise<Required<IUserTenant>>;
2
9
  interface Params {
3
10
  [key: string]: any;
4
11
  jobType: 'EXPORT' | 'IMPORT';
@@ -1,17 +1,19 @@
1
- export declare const headerStore: {
1
+ type Lang = 'en-US' | 'zh-CN' | 'fr-FR';
2
+ export declare const commonStore: {
2
3
  needUpdate: boolean;
3
4
  download: boolean;
4
5
  theme: boolean;
5
6
  isMobile: boolean;
6
- lang: 'en-US' | 'zh-CN' | 'fr-FR';
7
+ language: boolean;
8
+ lang: Lang;
7
9
  platformName: string;
8
10
  platformType: string;
9
11
  platformUrl: string;
10
12
  platformMainUrl?: string | undefined;
11
13
  };
12
14
  export declare function fnShowDownload(val: boolean): void;
13
- export declare function fnSetInitLang(val: 'en-US' | 'zh-CN' | 'fr-FR'): void;
14
- export declare function fnSetLang(val: 'en-US' | 'zh-CN' | 'fr-FR'): void;
15
+ export declare function fnSetLanguage(val: boolean): void;
16
+ export declare function fnSetLang(val?: Lang): void;
15
17
  export declare function fnSetTheme(val: boolean): void;
16
18
  export declare function fnSetPlatform(val: {
17
19
  platformName: string;
@@ -21,3 +23,4 @@ export declare function fnSetPlatform(val: {
21
23
  }): void;
22
24
  export declare function fnSetPlatformName(platformName: string): void;
23
25
  export declare function fnSetNeedUpdate(value: boolean): void;
26
+ export {};