@chase-shao/vue-component-lib 1.2.78 → 1.2.80
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/dist/components/data-gen/views/CreateView.vue.d.ts +19 -18
- package/dist/components/data-gen/views/UpdateView.vue.d.ts +18 -18
- package/dist/components/data-gen/widgets/CheckBox.vue.d.ts +4 -4
- package/dist/components/data-gen/widgets/FileUpload.vue.d.ts +4 -4
- package/dist/components/data-gen/widgets/InputNumber.vue.d.ts +4 -4
- package/dist/components/data-gen/widgets/InputText.vue.d.ts +4 -4
- package/dist/components/data-gen/widgets/TextArea.vue.d.ts +4 -4
- package/dist/components/data-gen/widgets/index.vue.d.ts +8 -8
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +776 -703
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/services/dataGen.d.ts +4 -3
- package/dist/services/page.d.ts +100 -0
- package/package.json +1 -1
|
@@ -79,7 +79,8 @@ export declare enum PageActionType {
|
|
|
79
79
|
Create = 0,
|
|
80
80
|
Update = 1,
|
|
81
81
|
Details = 2,
|
|
82
|
-
List = 3
|
|
82
|
+
List = 3,
|
|
83
|
+
ReCreate = 5
|
|
83
84
|
}
|
|
84
85
|
export declare const getPageData: (type: PageActionType, className: string, store: {
|
|
85
86
|
svrStore: any;
|
|
@@ -88,8 +89,8 @@ export declare const getPageData: (type: PageActionType, className: string, stor
|
|
|
88
89
|
workflowId: string;
|
|
89
90
|
}) => Promise<PageConfig>;
|
|
90
91
|
export declare const getBtnList: (type: PageActionType, className: string, opt: {
|
|
91
|
-
workflowId
|
|
92
|
-
email
|
|
92
|
+
workflowId?: string;
|
|
93
|
+
email?: string;
|
|
93
94
|
}) => Promise<{
|
|
94
95
|
button: string;
|
|
95
96
|
isShow: boolean;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { PageActionType, PageConfig } from './dataGen';
|
|
2
|
+
interface IPageBuild {
|
|
3
|
+
setWorkflowId(workflowId?: string): IPageBuild;
|
|
4
|
+
setPageActionType(pageActionType: PageActionType): IPageBuild;
|
|
5
|
+
setClassName(className: string): IPageBuild;
|
|
6
|
+
setStore(store: {
|
|
7
|
+
svrStore: any;
|
|
8
|
+
bpmStore: any;
|
|
9
|
+
}): IPageBuild;
|
|
10
|
+
setOpt(opt: {
|
|
11
|
+
workflowId: string;
|
|
12
|
+
}): IPageBuild;
|
|
13
|
+
build(): IPage;
|
|
14
|
+
}
|
|
15
|
+
interface IPage {
|
|
16
|
+
getPageData(): Promise<PageConfig>;
|
|
17
|
+
getBtnList(): Promise<{
|
|
18
|
+
button: string;
|
|
19
|
+
isShow: boolean;
|
|
20
|
+
}[]>;
|
|
21
|
+
getFiles(): Promise<{
|
|
22
|
+
[key: string]: any[];
|
|
23
|
+
}>;
|
|
24
|
+
removeFile(attachmentId: string): Promise<void>;
|
|
25
|
+
getProcess(): Promise<any>;
|
|
26
|
+
getCommentsHistory(): Promise<{
|
|
27
|
+
associator: string;
|
|
28
|
+
comments: string;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
}[]>;
|
|
31
|
+
getAssociator(): Promise<{
|
|
32
|
+
id: number;
|
|
33
|
+
associator: string;
|
|
34
|
+
}[]>;
|
|
35
|
+
getApprovers(): Promise<{
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
assignApprover(selectedApprover: string): Promise<void>;
|
|
40
|
+
addComments(comment: string): Promise<void>;
|
|
41
|
+
deleteAssociator(id: string): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
declare class PageBuilder implements IPageBuild {
|
|
44
|
+
private pageActionType?;
|
|
45
|
+
private className;
|
|
46
|
+
private store;
|
|
47
|
+
private opt;
|
|
48
|
+
setWorkflowId(workflowId?: string): this;
|
|
49
|
+
setPageActionType(pageActionType: PageActionType): this;
|
|
50
|
+
setClassName(className: string): this;
|
|
51
|
+
setStore(store: {
|
|
52
|
+
svrStore: any;
|
|
53
|
+
bpmStore: any;
|
|
54
|
+
}): this;
|
|
55
|
+
setOpt(opt: {
|
|
56
|
+
workflowId: string;
|
|
57
|
+
}): this;
|
|
58
|
+
build(): Page;
|
|
59
|
+
}
|
|
60
|
+
declare class Page implements IPage {
|
|
61
|
+
private pageActionType;
|
|
62
|
+
private className;
|
|
63
|
+
private store;
|
|
64
|
+
private opt?;
|
|
65
|
+
private getApproverEmail;
|
|
66
|
+
private getWorkflowId;
|
|
67
|
+
constructor(pageActionType: PageActionType, className: string, store: {
|
|
68
|
+
svrStore: any;
|
|
69
|
+
bpmStore: any;
|
|
70
|
+
}, opt?: {
|
|
71
|
+
workflowId: string;
|
|
72
|
+
});
|
|
73
|
+
getPageData(): Promise<PageConfig>;
|
|
74
|
+
getBtnList(): Promise<{
|
|
75
|
+
button: string;
|
|
76
|
+
isShow: boolean;
|
|
77
|
+
}[]>;
|
|
78
|
+
getFiles(): Promise<{
|
|
79
|
+
[key: string]: any[];
|
|
80
|
+
}>;
|
|
81
|
+
removeFile(attachmentId: string): Promise<void>;
|
|
82
|
+
getProcess(): Promise<any[]>;
|
|
83
|
+
getCommentsHistory(): Promise<{
|
|
84
|
+
associator: string;
|
|
85
|
+
comments: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
}[]>;
|
|
88
|
+
getAssociator(): Promise<{
|
|
89
|
+
id: number;
|
|
90
|
+
associator: string;
|
|
91
|
+
}[]>;
|
|
92
|
+
getApprovers(): Promise<{
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
}[]>;
|
|
96
|
+
assignApprover(selectedApprover: string): Promise<void>;
|
|
97
|
+
addComments(comment: string): Promise<void>;
|
|
98
|
+
deleteAssociator(id: string): Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
export { PageBuilder, IPageBuild, IPage };
|