@partex/one-core 2.0.21 → 2.0.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 -10
- package/lib/components/components.d.ts +1 -0
- package/lib/components/create.d.ts +2 -0
- package/lib/components/form/index.vue.d.ts +7 -7
- package/lib/components/header/index.vue.d.ts +3 -4
- package/lib/components/local/en-US.d.ts +2 -0
- package/lib/components/local/index.d.ts +4 -0
- package/lib/components/local/zh-CN.d.ts +2 -0
- package/lib/components/login/index.vue.d.ts +1 -1
- package/lib/components/main/index.vue.d.ts +1 -1
- package/lib/components/searchBar/index.vue.d.ts +1 -1
- package/lib/components/searchBar/interface.d.ts +2 -1
- package/lib/components/searchBar/item.vue.d.ts +2 -0
- package/lib/components/store/common.d.ts +3 -8
- package/lib/components/store/index.d.ts +1 -1
- package/lib/components/table/index.vue.d.ts +6 -6
- package/lib/components/workflow/components/add.vue.d.ts +8 -0
- package/lib/components/workflow/components/card.vue.d.ts +22 -0
- package/lib/components/workflow/components/node.vue.d.ts +24 -0
- package/lib/components/workflow/index.d.ts +2 -0
- package/lib/components/workflow/index.vue.d.ts +41 -0
- package/lib/components/workflow/interface.d.ts +12 -0
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +3157 -2684
- package/lib/one-core.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/volar.d.ts +0 -1
package/README.md
CHANGED
|
@@ -388,20 +388,11 @@ interface Store {
|
|
|
388
388
|
isMobile: boolean // 是否是小屏幕
|
|
389
389
|
download: boolean // 显示/隐藏下载窗口
|
|
390
390
|
theme: boolean // 主题颜色 true: light false: dark
|
|
391
|
-
platformName: string // 平台名称
|
|
391
|
+
platformName: () => string // 平台名称
|
|
392
392
|
platformType: string // 平台代码
|
|
393
393
|
platformUrl: string // 平台首页
|
|
394
394
|
}
|
|
395
395
|
```
|
|
396
|
-
* fnSetTheme(boolean) 设置主题
|
|
397
|
-
* fnSetPlatform 设置平台
|
|
398
|
-
```
|
|
399
|
-
fnSetPlatform({
|
|
400
|
-
platformName: ''
|
|
401
|
-
platformType: ''
|
|
402
|
-
platformUrl: ''
|
|
403
|
-
})
|
|
404
|
-
```
|
|
405
396
|
|
|
406
397
|
## userStore
|
|
407
398
|
* 用户信息
|
|
@@ -55,7 +55,7 @@ declare const _default: DefineComponent<{
|
|
|
55
55
|
clearable?: boolean | undefined;
|
|
56
56
|
rule?: {
|
|
57
57
|
required: boolean;
|
|
58
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
58
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
59
59
|
message: string;
|
|
60
60
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
61
61
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -82,7 +82,7 @@ declare const _default: DefineComponent<{
|
|
|
82
82
|
clearable?: boolean | undefined;
|
|
83
83
|
rule?: {
|
|
84
84
|
required: boolean;
|
|
85
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
85
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
86
86
|
message: string;
|
|
87
87
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
88
88
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -105,7 +105,7 @@ declare const _default: DefineComponent<{
|
|
|
105
105
|
clearable?: boolean | undefined;
|
|
106
106
|
rule?: {
|
|
107
107
|
required: boolean;
|
|
108
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
108
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
109
109
|
message: string;
|
|
110
110
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
111
111
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -131,7 +131,7 @@ declare const _default: DefineComponent<{
|
|
|
131
131
|
clearable?: boolean | undefined;
|
|
132
132
|
rule?: {
|
|
133
133
|
required: boolean;
|
|
134
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
134
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
135
135
|
message: string;
|
|
136
136
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
137
137
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -153,7 +153,7 @@ declare const _default: DefineComponent<{
|
|
|
153
153
|
clearable?: boolean | undefined;
|
|
154
154
|
rule?: {
|
|
155
155
|
required: boolean;
|
|
156
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
156
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
157
157
|
message: string;
|
|
158
158
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
159
159
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -177,7 +177,7 @@ declare const _default: DefineComponent<{
|
|
|
177
177
|
clearable?: boolean | undefined;
|
|
178
178
|
rule?: {
|
|
179
179
|
required: boolean;
|
|
180
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
180
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
181
181
|
message: string;
|
|
182
182
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
183
183
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -199,7 +199,7 @@ declare const _default: DefineComponent<{
|
|
|
199
199
|
clearable?: boolean | undefined;
|
|
200
200
|
rule?: {
|
|
201
201
|
required: boolean;
|
|
202
|
-
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "
|
|
202
|
+
type?: ("string" | "number" | "boolean" | "object" | "pattern" | "email" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "any") | undefined;
|
|
203
203
|
message: string;
|
|
204
204
|
trigger: ("input" | "blur" | "change" | "focus") | ("input" | "blur" | "change" | "focus")[];
|
|
205
205
|
validator?: string | Fn<any, any> | undefined;
|
|
@@ -77,14 +77,13 @@ declare const _default: DefineComponent<{
|
|
|
77
77
|
isMobile: boolean;
|
|
78
78
|
language: boolean;
|
|
79
79
|
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
80
|
-
platformName: string;
|
|
80
|
+
platformName: () => string;
|
|
81
81
|
platformType: string;
|
|
82
82
|
platformUrl: string;
|
|
83
83
|
platformMainUrl?: string | undefined;
|
|
84
84
|
};
|
|
85
85
|
theme: Ref<boolean>;
|
|
86
86
|
activeMenu: Ref<string>;
|
|
87
|
-
platformName: Ref<string>;
|
|
88
87
|
platformOption: Ref<any>;
|
|
89
88
|
fnSetLang: typeof fnSetLang;
|
|
90
89
|
showMenu: Ref<boolean>;
|
|
@@ -125,11 +124,11 @@ declare const _default: DefineComponent<{
|
|
|
125
124
|
default: boolean;
|
|
126
125
|
};
|
|
127
126
|
}>>, {
|
|
128
|
-
download: boolean;
|
|
129
127
|
message: boolean;
|
|
128
|
+
report: boolean;
|
|
129
|
+
download: boolean;
|
|
130
130
|
menuOptions: IHeaderMenu;
|
|
131
131
|
qiankun: boolean;
|
|
132
132
|
mainUrl: string;
|
|
133
|
-
report: boolean;
|
|
134
133
|
}, {}>;
|
|
135
134
|
export default _default;
|
|
@@ -2,11 +2,13 @@ import { I18n } from 'vue-i18n';
|
|
|
2
2
|
export declare const i18n: I18n<{
|
|
3
3
|
'en-US': {
|
|
4
4
|
Platform: {
|
|
5
|
+
components: string;
|
|
5
6
|
iot: string;
|
|
6
7
|
tdm: string;
|
|
7
8
|
qms: string;
|
|
8
9
|
twin: string;
|
|
9
10
|
maintain: string;
|
|
11
|
+
order: string;
|
|
10
12
|
};
|
|
11
13
|
Notice: {
|
|
12
14
|
success: string;
|
|
@@ -96,11 +98,13 @@ export declare const i18n: I18n<{
|
|
|
96
98
|
};
|
|
97
99
|
'zh-CN': {
|
|
98
100
|
Platform: {
|
|
101
|
+
components: string;
|
|
99
102
|
iot: string;
|
|
100
103
|
tdm: string;
|
|
101
104
|
qms: string;
|
|
102
105
|
twin: string;
|
|
103
106
|
maintain: string;
|
|
107
|
+
order: string;
|
|
104
108
|
};
|
|
105
109
|
Notice: {
|
|
106
110
|
success: string;
|
|
@@ -30,7 +30,7 @@ declare const _default: DefineComponent<{
|
|
|
30
30
|
isMobile: boolean;
|
|
31
31
|
language: boolean;
|
|
32
32
|
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
33
|
-
platformName: string;
|
|
33
|
+
platformName: () => string;
|
|
34
34
|
platformType: string;
|
|
35
35
|
platformUrl: string;
|
|
36
36
|
platformMainUrl?: string | undefined;
|
|
@@ -139,7 +139,7 @@ declare const _default: DefineComponent<{
|
|
|
139
139
|
isMobile: boolean;
|
|
140
140
|
language: boolean;
|
|
141
141
|
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
142
|
-
platformName: string;
|
|
142
|
+
platformName: () => string;
|
|
143
143
|
platformType: string;
|
|
144
144
|
platformUrl: string;
|
|
145
145
|
platformMainUrl?: string | undefined;
|
|
@@ -52,7 +52,7 @@ declare const _default: DefineComponent<{
|
|
|
52
52
|
isMobile: boolean;
|
|
53
53
|
language: boolean;
|
|
54
54
|
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
55
|
-
platformName: string;
|
|
55
|
+
platformName: () => string;
|
|
56
56
|
platformType: string;
|
|
57
57
|
platformUrl: string;
|
|
58
58
|
platformMainUrl?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SelectGroupOption, CascaderOption, TreeSelectOption } from 'naive-ui';
|
|
2
|
+
import type { ObjectKey } from '../interface';
|
|
2
3
|
type SelectOption = any;
|
|
3
4
|
interface Base {
|
|
4
5
|
title?: (() => string) | string;
|
|
@@ -8,7 +9,7 @@ interface Base {
|
|
|
8
9
|
clearable?: boolean;
|
|
9
10
|
placeholder?: (() => string) | string;
|
|
10
11
|
disabled?: boolean;
|
|
11
|
-
updateValue?: (value: [] | string | number | null, data:
|
|
12
|
+
updateValue?: (value: [] | string | number | null, data: ObjectKey, next: (data: ObjectKey) => void) => void;
|
|
12
13
|
}
|
|
13
14
|
export interface Input extends Base {
|
|
14
15
|
type: 'input';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { ISearchBarType } from './interface';
|
|
3
|
+
import { ObjectKey } from '../interface';
|
|
3
4
|
declare const _default: DefineComponent<{
|
|
4
5
|
cols: {
|
|
5
6
|
type: PropType<number>;
|
|
@@ -24,6 +25,7 @@ declare const _default: DefineComponent<{
|
|
|
24
25
|
key: string;
|
|
25
26
|
}[]>;
|
|
26
27
|
showMore: () => void;
|
|
28
|
+
setValues: (value?: ObjectKey) => void;
|
|
27
29
|
dropValueChange: (key: string, value: string, item: any) => void;
|
|
28
30
|
dropDisplayToggle: (key: string) => void;
|
|
29
31
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type Lang = 'en-US' | 'zh-CN' | 'fr-FR';
|
|
2
|
+
export type IPlatform = 'Components' | 'iot' | 'tdm' | 'qms' | 'twin' | 'maintain' | 'order';
|
|
2
3
|
export declare const commonStore: {
|
|
3
4
|
needUpdate: boolean;
|
|
4
5
|
download: boolean;
|
|
@@ -6,7 +7,7 @@ export declare const commonStore: {
|
|
|
6
7
|
isMobile: boolean;
|
|
7
8
|
language: boolean;
|
|
8
9
|
lang: Lang;
|
|
9
|
-
platformName: string;
|
|
10
|
+
platformName: () => string;
|
|
10
11
|
platformType: string;
|
|
11
12
|
platformUrl: string;
|
|
12
13
|
platformMainUrl?: string | undefined;
|
|
@@ -14,13 +15,7 @@ export declare const commonStore: {
|
|
|
14
15
|
export declare function fnShowDownload(val: boolean): void;
|
|
15
16
|
export declare function fnSetLanguage(val: boolean): void;
|
|
16
17
|
export declare function fnSetLang(val?: Lang): void;
|
|
18
|
+
export declare function setPlatform(val: IPlatform): void;
|
|
17
19
|
export declare function fnSetTheme(val: boolean): void;
|
|
18
|
-
export declare function fnSetPlatform(val: {
|
|
19
|
-
platformName: string;
|
|
20
|
-
platformType: string;
|
|
21
|
-
platformUrl: string;
|
|
22
|
-
platformMainUrl?: string;
|
|
23
|
-
}): void;
|
|
24
|
-
export declare function fnSetPlatformName(platformName: string): void;
|
|
25
20
|
export declare function fnSetNeedUpdate(value: boolean): void;
|
|
26
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { userStore, fnSetUser, fnGetUser, fnClearUser, fnUserLogout } from './user';
|
|
2
|
-
export { commonStore, fnSetTheme,
|
|
2
|
+
export { commonStore, fnSetTheme, fnSetLang } from './common';
|
|
3
3
|
export type { IUserModel, IUserTenant } from './interface';
|
|
4
4
|
export { fnDownload } from './api';
|
|
@@ -220,6 +220,12 @@ declare const _default: DefineComponent<{
|
|
|
220
220
|
"onOn-update:value"?: ((...args: any[]) => any) | undefined;
|
|
221
221
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
222
222
|
}, {
|
|
223
|
+
importer: {
|
|
224
|
+
type: string;
|
|
225
|
+
file: string;
|
|
226
|
+
params?: string | undefined;
|
|
227
|
+
steam?: boolean | undefined;
|
|
228
|
+
};
|
|
223
229
|
actions: IActionButton[];
|
|
224
230
|
pagination: boolean;
|
|
225
231
|
minHeight: string | number;
|
|
@@ -235,12 +241,6 @@ declare const _default: DefineComponent<{
|
|
|
235
241
|
fetch: Fn<any, any>;
|
|
236
242
|
realtime: boolean;
|
|
237
243
|
addFn: Fn<any, any>;
|
|
238
|
-
importer: {
|
|
239
|
-
type: string;
|
|
240
|
-
file: string;
|
|
241
|
-
params?: string | undefined;
|
|
242
|
-
steam?: boolean | undefined;
|
|
243
|
-
};
|
|
244
244
|
exporter: {
|
|
245
245
|
jobTypeName: string;
|
|
246
246
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
showPopover: Ref<boolean>;
|
|
4
|
+
submit: (type: 1 | 2) => void;
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:add"[], "update:add", PublicProps, Readonly<ExtractPropTypes<{}>> & {
|
|
6
|
+
"onUpdate:add"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}, {}, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IWorkflowNode } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<IWorkflowNode>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
addOne: (type: 1 | 2) => void;
|
|
10
|
+
doDelete: () => void;
|
|
11
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:add" | "update:delete")[], "update:add" | "update:delete", PublicProps, Readonly<ExtractPropTypes<{
|
|
12
|
+
data: {
|
|
13
|
+
type: PropType<IWorkflowNode>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>> & {
|
|
17
|
+
"onUpdate:add"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
"onUpdate:delete"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
data: IWorkflowNode;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { IWorkflowNode } from '../interface';
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<IWorkflowNode[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
addStartOne: (type: 1 | 2) => void;
|
|
10
|
+
addNodeOne: (item: IWorkflowNode, type: 1 | 2) => void;
|
|
11
|
+
addCondition: (item: IWorkflowNode) => void;
|
|
12
|
+
addConditionBottom: (item: IWorkflowNode, type: 1 | 2) => void;
|
|
13
|
+
addConditionSide: (item: IWorkflowNode, type: 1 | 2) => void;
|
|
14
|
+
deleteNodeOne: (index: number) => void;
|
|
15
|
+
deleteConditionSide: (item: IWorkflowNode, index: number) => void;
|
|
16
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
data: {
|
|
18
|
+
type: PropType<IWorkflowNode[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
}>>, {
|
|
22
|
+
data: IWorkflowNode[];
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IWorkflowNode } from './interface';
|
|
2
|
+
import { DefineComponent, Ref, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { SelectOption } from 'naive-ui';
|
|
4
|
+
declare const _default: DefineComponent<{
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<IWorkflowNode[]>;
|
|
7
|
+
default: () => {
|
|
8
|
+
title: string;
|
|
9
|
+
type: number;
|
|
10
|
+
key: string;
|
|
11
|
+
parentKey: string;
|
|
12
|
+
children: never[];
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
scaleShow: Ref<number>;
|
|
17
|
+
scaleFilter: Ref<number>;
|
|
18
|
+
scaleOption: Ref<{
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
21
|
+
}[]>;
|
|
22
|
+
scaleHandle: (v: number) => void;
|
|
23
|
+
formatTooltip: (value: number) => string;
|
|
24
|
+
renderSelectLabel: (option: SelectOption) => VNode<RendererNode, RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>;
|
|
27
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
28
|
+
data: {
|
|
29
|
+
type: PropType<IWorkflowNode[]>;
|
|
30
|
+
default: () => {
|
|
31
|
+
title: string;
|
|
32
|
+
type: number;
|
|
33
|
+
key: string;
|
|
34
|
+
parentKey: string;
|
|
35
|
+
children: never[];
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
data: IWorkflowNode[];
|
|
40
|
+
}, {}>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectKey } from '../interface';
|
|
2
|
+
export interface IWorkflowBase {
|
|
3
|
+
title: string;
|
|
4
|
+
key: string;
|
|
5
|
+
parentKey: string;
|
|
6
|
+
params?: ObjectKey;
|
|
7
|
+
}
|
|
8
|
+
export interface IWorkflowNode extends IWorkflowBase {
|
|
9
|
+
type: 0 | 1 | 2 | 99;
|
|
10
|
+
children: IWorkflowNode[];
|
|
11
|
+
}
|
|
12
|
+
export type IWorkflow = IWorkflowNode;
|